Branch: Tag:

2001-04-03

2001-04-03 11:48:16 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Enums and typedefs now have implicit local binding.

Rev: src/language.yacc:1.243

112:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.242 2001/04/01 15:40:23 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.243 2001/04/03 11:48:16 grubba Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
2438:    {    if ($1) {    add_constant($1->u.sval.u.string, Pike_sp-1, -  Pike_compiler->current_modifiers & ~ID_EXTERN); +  (Pike_compiler->current_modifiers & ~ID_EXTERN) | ID_LOCAL);    }    free_node($1);    /* Update the type. */
2476:    if ($4) {    ref_push_type_value(t);    add_constant($4->u.sval.u.string, Pike_sp-1, -  Pike_compiler->current_modifiers & ~ID_EXTERN); +  (Pike_compiler->current_modifiers & ~ID_EXTERN) | ID_LOCAL);    pop_stack();    free_node($4);    }
2497:    if ($4) {    ref_push_type_value(t);    add_constant($4->u.sval.u.string, Pike_sp-1, -  Pike_compiler->current_modifiers & ~ID_EXTERN); +  (Pike_compiler->current_modifiers & ~ID_EXTERN) | ID_LOCAL);    pop_stack();    free_node($4);    }