pike.git / src / program.h

version» Context lines:

pike.git/src/program.h:1:   /*   || 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.200 2004/03/13 14:45:06 grubba Exp $ + || $Id: program.h,v 1.201 2004/03/16 12:46:51 grubba Exp $   */      #ifndef PROGRAM_H   #define PROGRAM_H      #include <stdarg.h>   #include "global.h"   #include "pike_macros.h"   #include "pike_error.h"   #include "svalue.h"
pike.git/src/program.h:19:      /* 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    + /* #define FORCE_RESOLVE_DEBUG */ + /* Helper macros for force_resolve */ + #ifdef FORCE_RESOLVE_DEBUG + #define DO_IF_FRD(X) X + #else /* !FORCE_RESOLVE_DEBUG */ + #define DO_IF_FRD(X) + #endif /* FORCE_RESOLVE_DEBUG */ + #define SET_FORCE_RESOLVE(OLD) do { \ +  int tmp_ = (OLD) = Pike_compiler->flags; \ +  Pike_compiler->flags |= COMPILATION_FORCE_RESOLVE; \ +  DO_IF_FRD(fprintf(stderr, \ +  "Force resolve on. Flags:0x%04x (0x%04x)\n", \ +  Pike_compiler->flags, tmp_)); \ +  } while(0) + #define UNSET_FORCE_RESOLVE(OLD) do { \ +  int tmp_ = (Pike_compiler->flags & ~COMPILATION_FORCE_RESOLVE) | \ +  ((OLD) & COMPILATION_FORCE_RESOLVE); \ +  DO_IF_FRD(fprintf(stderr, \ +  "Force resolve unset. Flags:0x%04x (0x%04x)\n", \ +  tmp_, Pike_compiler->flags)); \ +  Pike_compiler->flags = tmp_; \ +  } while(0) +    extern struct pike_string *this_program_string;      #define LFUN___INIT 0   #define LFUN_CREATE 1   #define LFUN_DESTROY 2   #define LFUN_ADD 3   #define LFUN_SUBTRACT 4   #define LFUN_AND 5   #define LFUN_OR 6   #define LFUN_XOR 7