Branch: Tag:

2004-08-13

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

Backported program_{indices,values}() fix from Pike 7.7.

Rev: src/program.c:1.234

5:   \*/   /**/   #include "global.h" - RCSID("$Id: program.c,v 1.233 2001/08/02 23:10:40 hubbe Exp $"); + RCSID("$Id: program.c,v 1.234 2004/08/13 13:05:35 grubba Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
2834:    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);
2857:    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);