Branch: Tag:

2001-07-03

2001-07-03 17:11:01 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Workaround for bug 1839 (#1839).

Rev: src/program.c:1.299

5:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.298 2001/06/30 02:56:14 mast Exp $"); + RCSID("$Id: program.c,v 1.299 2001/07/03 17:11:01 grubba Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
2212:    if(n==-1)    yyerror("Pass2: Variable disappeared!");    else { +  /* Don't mess with inherited variables... */ +  if(!IDENTIFIERP(n)->inherit_offset) {    struct identifier *id; -  id=ID_FROM_INT(Pike_compiler->new_program,n); +  id = ID_FROM_INT(Pike_compiler->new_program, n);    free_string(id->type);    copy_shared_string(id->type, type); -  +  }    return n;    }    }