Branch: Tag:

2000-03-09

2000-03-09 15:02:27 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Moved handling of this_program from language.yacc to find_module_identifier().

Rev: src/language.yacc:1.169
Rev: src/program.c:1.210

188:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.168 2000/03/07 21:22:34 hubbe Exp $"); + RCSID("$Id: language.yacc,v 1.169 2000/03/09 15:02:26 grubba Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
2352:    if(last_identifier) free_string(last_identifier);    copy_shared_string(last_identifier, $1->u.sval.u.string);    -  if(last_identifier == this_program_string) { -  struct svalue s; -  s.type=T_PROGRAM; -  s.u.program=new_program; -  $$=mkconstantsvaluenode(&s); -  } -  else if(($$=lexical_islocal(last_identifier))) +  if(($$=lexical_islocal(last_identifier)))    {    /* done, nothing to do here */    }else if((i=isidentifier(last_identifier))>=0){