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.180 2006/01/09 13:20:00 grubba Exp $"); + RCSID("$Id: las.c,v 1.181 2006/03/02 10:37:58 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:801:    f=compiler_frame;    for(e=0;e<depth;e++) f=f->previous;    copy_shared_string(res->type, f->variable[var].type);       res->node_info = OPT_NOT_CONST | OPT_NOT_SHARED;    res->tree_info = res->node_info;   #ifdef __CHECKER__    _CDR(res) = 0;   #endif    res->u.integer.a = var; +  if (depth < 0) { +  res->node_info |= OPT_ASSIGNMENT; +  res->u.integer.b = 0; +  } else {    res->u.integer.b = depth; -  +  }      #ifdef SHARED_NODES    /* FIXME: Not common-subexpression optimized.    * Node would need to contain a ref to the current function,    * and to the current program.    */       res->hash = hash_node(res);       /* return freeze_node(res); */