Branch: Tag:

2007-10-13

2007-10-13 15:32:06 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added support for blocking alterations in pass 2.

Rev: src/program_areas.h:1.15

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_areas.h,v 1.14 2005/05/31 11:27:11 grubba Exp $ + || $Id: program_areas.h,v 1.15 2007/10/13 15:32:06 grubba Exp $   */      /* Who needs templates anyway? / Hubbe */
10:   #ifndef BAR   #define BAR(NUMTYPE, TYPE, ARGTYPE, NAME) FOO(NUMTYPE, TYPE, ARGTYPE, NAME)   #endif /* !BAR */ + #ifndef PASS1ONLY + #define PASS1ONLY(NUMTYPE, TYPE, ARGTYPE, NAME) FOO(NUMTYPE, TYPE, ARGTYPE, NAME) + #endif /* !PASS1ONLY */      /* Program *must* be first! */   BAR(size_t,PIKE_OPCODE_T, PIKE_OPCODE_T, program)
17:   FOO(size_t,char, int, linenumbers)   FOO(unsigned INT16,unsigned INT16, unsigned, identifier_index)   FOO(unsigned INT16,unsigned INT16, unsigned, variable_index) - FOO(unsigned INT16,struct reference, struct reference, identifier_references) +    FOO(unsigned INT16,struct pike_string *, struct pike_string *, strings) - FOO(unsigned INT16,struct inherit, struct inherit, inherits) - FOO(unsigned INT16,struct identifier, struct identifier, identifiers) +    FOO(unsigned INT16,struct program_constant, struct program_constant, constants) -  + PASS1ONLY(unsigned INT16,struct reference, struct reference, identifier_references) + PASS1ONLY(unsigned INT16,struct inherit, struct inherit, inherits) + PASS1ONLY(unsigned INT16,struct identifier, struct identifier, identifiers) + #undef PASS1ONLY   #undef FOO   #undef BAR