Branch: Tag:

2004-05-29

2004-05-29 18:13:42 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Removed the field "name" from struct program_constant since it was only used for debug (the real constant name is in the corresponding struct identifier).
Replaced it with an offset to be used to locate the initialization function.

Rev: src/encode.c:1.216
Rev: src/gc.c:1.255
Rev: src/las.c:1.346
Rev: src/program.c:1.564
Rev: src/program.h:1.205

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: las.c,v 1.345 2004/03/16 13:42:30 grubba Exp $ + || $Id: las.c,v 1.346 2004/05/29 18:13:41 grubba Exp $   */      #include "global.h" - RCSID("$Id: las.c,v 1.345 2004/03/16 13:42:30 grubba Exp $"); + RCSID("$Id: las.c,v 1.346 2004/05/29 18:13:41 grubba Exp $");    - #include "language.h" +    #include "interpret.h"   #include "las.h"   #include "array.h"
5470:    p_const = prog->constants + prog->num_constants;       free_svalue(&p_const->sval); + #if 0    if (p_const->name) {    free_string(p_const->name);    p_const->name = NULL;    } -  + #endif /* 0 */    }      #ifdef PIKE_USE_MACHINE_CODE