Branch: Tag:

2001-08-02

2001-08-02 22:24:11 by Fredrik H├╝binette (Hubbe) <hubbe@hubbe.net>

preserve variables used by lambdas so that they do not fall out of scope, Kupo

Rev: src/language.yacc:1.257
Rev: src/las.h:1.51
Rev: src/program.c:1.361
Rev: src/testsuite.in:1.447

112:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.256 2001/07/13 14:40:22 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.257 2001/08/02 22:24:10 hubbe Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
3820:    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);    }    }