Branch: Tag:

2002-03-04

2002-03-04 21:48:50 by Martin Stjernholm <mast@lysator.liu.se>

Store a zero when declaring a constant without a value in pass 1. This
is a kludge to avoid fatals since constants might be looked up in pass
1 programs. (We can just hope that the constant will be looked up
again later..)

Rev: src/program.c:1.407

5:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.406 2002/03/01 02:32:14 mast Exp $"); + RCSID("$Id: program.c,v 1.407 2002/03/04 21:48:50 mast Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
3361:    int n;    struct identifier dummy;    struct reference ref; +  struct svalue zero;    -  +  if (!c) { +  zero.type = T_INT; +  zero.subtype = 0; +  zero.u.integer = 0; +  c = &zero; +  } +    #ifdef PROGRAM_BUILD_DEBUG    {    if (c) {