comparison src/symtab.cc @ 395:ee3da0884aaa

[project @ 1994-03-24 09:23:18 by jwe]
author jwe
date Thu, 24 Mar 1994 09:25:58 +0000
parents 4cf3c7df0e3d
children 393e95f46b51
comparison
equal deleted inserted replaced
394:27ef550be39e 395:ee3da0884aaa
625 void 625 void
626 symbol_record::push_context (void) 626 symbol_record::push_context (void)
627 { 627 {
628 context.push (definition); 628 context.push (definition);
629 definition = (symbol_def *) NULL; 629 definition = (symbol_def *) NULL;
630
631 global_link_context.push ((unsigned) linked_to_global);
632 linked_to_global = 0;
630 } 633 }
631 634
632 void 635 void
633 symbol_record::pop_context (void) 636 symbol_record::pop_context (void)
634 { 637 {
645 symbol_def *old_def = pop_def (); 648 symbol_def *old_def = pop_def ();
646 maybe_delete (old_def); 649 maybe_delete (old_def);
647 } 650 }
648 651
649 definition = context.pop (); 652 definition = context.pop ();
653 linked_to_global = global_link_context.pop ();
650 } 654 }
651 655
652 int 656 int
653 symbol_record::read_only_error (void) 657 symbol_record::read_only_error (void)
654 { 658 {