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.266 2009/08/17 11:41:33 grubba Exp $ + || $Id: program.h,v 1.267 2009/09/12 13:31:38 grubba Exp $   */      #ifndef PROGRAM_H   #define PROGRAM_H      #include "global.h"   #include "pike_macros.h"   #include "pike_error.h"   #include "svalue.h"   #include "dmalloc.h"
pike.git/src/program.h:536:    *    * Such a "very simple" handler should only do things like freeing    * pointers and clearing variables in the object storage. It can not    * assume that any other context is intact when it's called. It might    * even get called after the module exit function, which means that    * this optimization trick can never be used in a dynamically loaded    * module. */   #define PROGRAM_LIVE_OBJ 0x2000      /* Indicates that the class is a facet or product_class. */ - #define PROGRAM_IS_FACET_CLASS 0x1 - #define PROGRAM_IS_PRODUCT_CLASS 0x2 + #define PROGRAM_IS_FACET 0x4000 + #define PROGRAM_IS_PRODUCT 0x8000      /* Using define instead of enum allows for ifdefs - Hubbe */   #define PROG_EVENT_INIT 0   #define PROG_EVENT_EXIT 1   #define PROG_EVENT_GC_RECURSE 2   #define PROG_EVENT_GC_CHECK 3   #define NUM_PROG_EVENTS 4      /* These macros should only be used if (p->flags & PROGRAM_USES_PARENT)    * is true
pike.git/src/program.h:616:   #define FOO(NUMTYPE,TYPE,ARGTYPE,NAME) TYPE * NAME ;   #include "program_areas.h"      #define FOO(NUMTYPE,TYPE,ARGTYPE,NAME) NUMTYPE PIKE_CONCAT(num_,NAME) ;   #include "program_areas.h"       INT16 lfuns[NUM_LFUNS];      #ifdef WITH_FACETS    /* Facet related stuff */ -  INT16 facet_class; /* PROGRAM_IS_X_CLASS (X=FACET/PRODUCT) */ +     INT32 facet_index; /* Index to the facet this facet class belongs to */    struct object *facet_group;   #endif   };      void dump_program_tables (const struct program *p, int indent);   #ifdef PIKE_DEBUG   static INLINE int CHECK_IDREF_RANGE (int x, const struct program *p)   {    if (x < 0 || x >= p->num_identifier_references) {