pike.git / src / docode.c

version» Context lines:

pike.git/src/docode.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: docode.c,v 1.105 2002/04/07 19:35:46 marcus Exp $"); + RCSID("$Id: docode.c,v 1.106 2002/11/18 16:40:54 grubba Exp $");   #include "las.h"   #include "program.h"   #include "pike_types.h"   #include "stralloc.h"   #include "interpret.h"   #include "constants.h"   #include "array.h"   #include "pike_macros.h"   #include "pike_error.h"   #include "pike_memory.h"
pike.git/src/docode.c:1585:    struct object *o;       for(o=Pike_compiler->fake_object;o!=n->u.sval.u.object;o=o->parent)    x++;    emit2(F_EXTERNAL, n->u.sval.subtype, x);    Pike_compiler->new_program->flags |= PROGRAM_USES_PARENT;    return 1;    }    }    +  default:   #ifdef PIKE_DEBUG -  case T_OBJECT: -  if(n->u.sval.u.object->next == n->u.sval.u.object) +  if((n->type == T_OBJECT) && +  (n->u.sval.u.object->next == n->u.sval.u.object))    fatal("Internal error: Pointer to parent cannot be a compile time constant!\n");   #endif    -  default: +     tmp1=store_constant(&(n->u.sval),    !(n->tree_info & OPT_EXTERNAL_DEPEND),    n->name);    emit1(F_CONSTANT, DO_NOT_WARN((INT32)tmp1));    return 1;       case T_ARRAY:    case T_MAPPING:    case T_MULTISET:    tmp1=store_constant(&(n->u.sval),