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: gc.c,v 1.254 2004/05/23 00:44:34 nilsson Exp $ + || $Id: gc.c,v 1.255 2004/05/29 18:13:41 grubba Exp $   */      #include "global.h"
33:      #include "block_alloc.h"    - RCSID("$Id: gc.c,v 1.254 2004/05/23 00:44:34 nilsson Exp $"); + RCSID("$Id: gc.c,v 1.255 2004/05/29 18:13:41 grubba Exp $");      int gc_enabled = 1;   
440:    {    e = ((char *)ptr - (char *)(p->constants)) /    sizeof(struct program_constant); + #if 0    fprintf(stderr,"%*s **In p->constants[%"PRINTPTRDIFFT"d] (%s)\n",indent,"",    e, p->constants[e].name ? p->constants[e].name->str : "no name"); -  + #else /* !0 */ +  fprintf(stderr,"%*s **In p->constants[%"PRINTPTRDIFFT"d] (%d)\n",indent,"", +  e, p->constants[e].offset); + #endif /* 0 */    break;    }