pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:105:   %left TOK_LSH TOK_RSH   %left '+' '-'   %left '*' '%' '/'   %right TOK_NOT '~'   %nonassoc TOK_INC TOK_DEC      %{   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.238 2002/12/10 18:53:11 mast Exp $"); + RCSID("$Id: language.yacc,v 1.239 2006/02/25 11:11:40 grubba Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif      #include "interpret.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "las.h"   #include "interpret.h"
pike.git/src/language.yacc:3722:    {    struct compiler_frame *q=Pike_compiler->compiler_frame;    if(f->variable[e].def)    return copy_node(f->variable[e].def);    while(q!=f)    {    q->lexical_scope|=SCOPE_SCOPED;    q=q->previous;    }    -  if(depth) +  if(depth) {    q->lexical_scope|=SCOPE_SCOPE_USED;       if(q->min_number_of_locals < e+1)    q->min_number_of_locals = e+1; -  +  }       return mklocalnode(e,depth);    }    }    if(!(f->lexical_scope & SCOPE_LOCAL)) return 0;    depth++;    f=f->previous;    }   }