pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:181:   %left F_LSH F_RSH   %left '+' '-'   %left '*' '%' '/'   %right F_NOT '~'   %nonassoc F_INC F_DEC      %{   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.184 2001/06/25 12:03:21 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.185 2001/08/02 23:10:39 hubbe 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:2886:    if(f->variable[e].name==str)    {    struct compiler_frame *q=compiler_frame;    if(f->variable[e].def)    return copy_node(f->variable[e].def);    while(q!=f)    {    q->lexical_scope=2;    q=q->previous;    } +  if(q->min_number_of_locals < e+1) +  q->min_number_of_locals = e+1; +     return mklocalnode(e,depth);    }    }    if(!f->lexical_scope) return 0;    depth++;    f=f->previous;    }   }      void cleanup_compiler(void)   {    if(last_identifier)    {    free_string(last_identifier);    last_identifier=0;    }   }