Branch: Tag:

2004-03-13

2004-03-13 14:45:06 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Renamed flag counter Pike_compiler->check_final to Pike_compiler->flags.
Moved the global flag force_resolve to Pike_compiler->flags.
Defined flags COMPILATION_{CHECK_FINAL,FORCE_RESOLVE}.
The above fixes various bugs introduced by yesterdays changes.

Rev: src/compilation.h:1.31
Rev: src/language.yacc:1.328
Rev: src/las.c:1.344
Rev: src/program.c:1.557
Rev: src/program.h:1.200

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: program.h,v 1.199 2004/03/10 18:08:12 grubba Exp $ + || $Id: program.h,v 1.200 2004/03/13 14:45:06 grubba Exp $   */      #ifndef PROGRAM_H
20:   /* Needed to support dynamic loading on NT */   PMOD_PROTO extern struct program_state * Pike_compiler;    + /* Compilation flags */ + #define COMPILATION_CHECK_FINAL 0x01 +  /* This flag is set when resolve functions should force the lookup so +  * that we don't get a placeholder back. Used for inherits. */ + #define COMPILATION_FORCE_RESOLVE 0x02 +    extern struct pike_string *this_program_string;      #define LFUN___INIT 0
565:   #define FOO(NUMTYPE,TYPE,ARGTYPE,NAME) void PIKE_CONCAT(add_to_,NAME(ARGTYPE ARG));   #include "program_areas.h"    - /* This flag is set when resolve functions should force the lookup so -  * that we don't get a placeholder back. Used for inherits. */ - extern int force_resolve; -  +    typedef int supporter_callback (void *, int);   struct Supporter   {