Branch: Tag:

2008-04-26

2008-04-26 19:04:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Moved compilation_depth to struct compilation.
Yet another step on the way to making the compiler thread safe.
Got rid of some now unused cleanup code in dynamic_load.c.

Rev: src/builtin_functions.c:1.656
Rev: src/dynamic_load.c:1.91
Rev: src/encode.c:1.264
Rev: src/language.yacc:1.416
Rev: src/pike_compiler.h:1.9
Rev: src/program.c:1.679
Rev: src/program.h:1.240

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: pike_compiler.h,v 1.8 2008/04/26 14:27:08 grubba Exp $ + || $Id: pike_compiler.h,v 1.9 2008/04/26 19:04:26 grubba Exp $   */      #ifndef PIKE_COMPILER_H
27:    int compilation_inherit; /* Inherit in supporter->self containing    * compilation_program. */    +  struct svalue default_module; /* predef:: */    dynamic_buffer used_modules; /* Stack of svalues with imported    * modules. */    INT32 num_used_modules; /* Number of entries on the stack. */    -  int save_depth; +  int compilation_depth; /* Current class nesting depth. */ +     int saved_threads_disabled;    struct mapping *resolve_cache_save;    -  struct svalue default_module; +    };      #ifdef PIKE_DEBUG