Branch: Tag:

2004-08-13

2004-08-13 12:13:01 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed bug in program_{indices,values}().

Rev: src/program.c:1.566

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: program.c,v 1.565 2004/06/30 00:16:27 nilsson Exp $ + || $Id: program.c,v 1.566 2004/08/13 12:13:01 grubba Exp $   */      #include "global.h" - RCSID("$Id: program.c,v 1.565 2004/06/30 00:16:27 nilsson Exp $"); + RCSID("$Id: program.c,v 1.566 2004/08/13 12:13:01 grubba Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
5233:    struct array *res;    for (e = p->num_identifier_references; e--; ) {    struct identifier *id; -  if (p->identifier_references[e].id_flags & ID_HIDDEN) { +  if (p->identifier_references[e].id_flags & +  (ID_HIDDEN|ID_STATIC|ID_PRIVATE)) {    continue;    }    id = ID_FROM_INT(p, e);
5267:    struct array *res;    for(e = p->num_identifier_references; e--; ) {    struct identifier *id; -  if (p->identifier_references[e].id_flags & ID_HIDDEN) { +  if (p->identifier_references[e].id_flags & +  (ID_HIDDEN|ID_STATIC|ID_PRIVATE)) {    continue;    }    id = ID_FROM_INT(p, e);