Branch: Tag:

2001-10-02

2001-10-02 09:08:19 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

fix for [bug 2359 (#2359)], (static and final did not work well together)

Rev: src/compilation.h:1.24
Rev: src/program.c:1.380

5:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.379 2001/10/02 07:19:04 hubbe Exp $"); + RCSID("$Id: program.c,v 1.380 2001/10/02 09:08:19 hubbe Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
1166:    struct pike_string *name=ID_FROM_INT(p, i)->name;       e=find_shared_string_identifier(name,p); +  if(e == -1) +  e=really_low_find_shared_string_identifier(name,p,SEE_STATIC); +     if(e != i)    {    if(name->len < 1024 && !name->size_shift) -  my_yyerror("Illegal to redefine final identifier %s\n",name->str); +  my_yyerror("Illegal to redefine final identifier %s",name->str);    else -  my_yyerror("Illegal to redefine final identifier (unable to output name of identifier).\n"); +  my_yyerror("Illegal to redefine final identifier (unable to output name of identifier).");    }    }    }