diff src/parse.y @ 5397:b12c0f920da0

[project @ 2005-06-17 07:52:28 by jwe]
author jwe
date Fri, 17 Jun 2005 07:52:28 +0000
parents b427cca320b8
children c7e3cf2fce3e
line wrap: on
line diff
--- a/src/parse.y	Fri Jun 17 04:10:53 2005 +0000
+++ b/src/parse.y	Fri Jun 17 07:52:28 2005 +0000
@@ -2567,7 +2567,10 @@
       fcn->stash_symtab_ptr (sr);
 
       if (lexer_flags.parsing_nested_function)
-        fcn->mark_as_nested_function ();
+        {
+          fcn->mark_as_nested_function ();
+	  sr->hide ();
+	}
     }
   else
     panic_impossible ();
@@ -2580,6 +2583,18 @@
       help_buf.pop ();
     }
 
+  // Also insert the full name in the symbol table.  This way, we can
+  // properly cope with changes to LOADPATH.
+
+  if (reading_fcn_file)
+    {
+      symbol_record *full_sr
+        = fbi_sym_tab->lookup (curr_fcn_file_full_name, true);
+
+      full_sr->alias (sr, true);
+      full_sr->hide ();
+    }
+
   if (lexer_flags.parsing_nested_function < 0)
     lexer_flags.parsing_nested_function = 0;