Branch: Tag:

2004-03-13

2004-03-13 13:22:40 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.
Added compilation pass as parameter to low_start_new_program().

Rev: src/compilation.h:1.31
Rev: src/encode.c:1.165
Rev: src/language.yacc:1.315
Rev: src/las.c:1.324
Rev: src/program.c:1.485
Rev: src/program.h:1.179

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.178 2003/12/03 09:36:36 grubba Exp $ + || $Id: program.h,v 1.179 2004/03/13 13:22:40 grubba Exp $   */      #ifndef PROGRAM_H
26:   /* 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
434:   #define FOO(NUMTYPE,TYPE,NAME) void PIKE_CONCAT(add_to_,NAME(TYPE 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
479:   void fixate_program(void);   struct program *low_allocate_program(void);   void low_start_new_program(struct program *p, +  int pass,    struct pike_string *name,    int flags,    int *idp);