pike.git / src / las.c

version» Context lines:

pike.git/src/las.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: las.c,v 1.182 2000/07/10 20:57:56 grubba Exp $"); + RCSID("$Id: las.c,v 1.183 2000/07/11 10:27:24 grubba Exp $");      #include "language.h"   #include "interpret.h"   #include "las.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "lex.h"   #include "pike_types.h"
pike.git/src/las.c:891:    return res;   }      node *debug_mkexternalnode(int level,    int i,    struct identifier *id)   {    node *res = mkemptynode();    res->token = F_EXTERNAL;    +  /* Kludge */ +  id = ID_FROM_INT(parent_compilation(level), i); +     copy_shared_string(res->type, id->type);       /* FIXME */ -  if(IDENTIFIER_IS_CONSTANT(ID_FROM_INT(parent_compilation(level), -  i)->identifier_flags)) +  if(IDENTIFIER_IS_CONSTANT(id->identifier_flags))    {    res->node_info = OPT_EXTERNAL_DEPEND;    }else{    res->node_info = OPT_NOT_CONST;    }    res->tree_info = res->node_info;      #ifdef __CHECKER__    _CDR(res) = 0;   #endif    res->u.integer.a = level;    res->u.integer.b = i;       /* Bzot-i-zot */    Pike_compiler->new_program->flags |= PROGRAM_USES_PARENT;    -  return freeze_node(res); +  /* Can't freeze the node, since the type-info may become wrong. */ +  /* return freeze_node(res); */ +  return res;   }      node *debug_mkcastnode(struct pike_string *type,node *n)   {    node *res;       if(!n) return 0;      #ifdef PIKE_DEBUG    if (!type) {