pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:1:   /*\   ||| 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.   \*/   /**/   #include "global.h" - RCSID("$Id: interpret.c,v 1.263 2002/08/15 14:49:21 marcus Exp $"); + RCSID("$Id: interpret.c,v 1.264 2002/09/11 17:13:58 mast Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"   #include "svalue.h"   #include "array.h"   #include "mapping.h"   #include "pike_error.h"   #include "language.h"   #include "stralloc.h"   #include "constants.h"
pike.git/src/interpret.c:456: Inside #if defined(PIKE_DEBUG)
  void my_describe_inherit_structure(struct program *p)   {    struct inherit *in,*last=0;    int e,i=0;    last=p->inherits-1;       fprintf(stderr,"PROGRAM[%d]: inherits=%d identifers_refs=%d ppid=%d\n",    p->id,    p->num_inherits,    p->num_identifier_references, -  p->parent_program_id); +  p->parent ? p->parent->id : -1);    for(e=0;e<p->num_identifier_references;e++)    {    in=INHERIT_FROM_INT(p,e);    while(last < in)    {    last++;    fprintf(stderr,    "[%ld]%*s parent{ offset=%d ident=%d id=%d } "    "id{ level=%d } prog=%d\n",    DO_NOT_WARN((long)(last - p->inherits)),    last->inherit_level*2,"",    last->parent_offset,    last->parent_identifier, -  last->prog->parent_program_id, +  last->prog->parent ? last->prog->parent->id : -1,    last->identifier_level,    last->prog->id);    i=0;    }       fprintf(stderr," %*s %d,%d: %s\n",    in->inherit_level*2,"",    e,i,    ID_FROM_INT(p,e)->name->str);    i++;