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.211 2004/09/28 23:58:26 mast Exp $ + || $Id: program.h,v 1.212 2004/10/22 23:24:50 nilsson 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:465:   /* Program is in an inconsistant state */   #define PROGRAM_AVOID_CHECK 0x400      /* Program has not yet been used for compilation */   #define PROGRAM_VIRGIN 0x800      /* Don't allow the program to be inherited or cloned if there's no    * parent object. Only set if PROGRAM_USES_PARENT is. */   #define PROGRAM_NEEDS_PARENT 0x1000    + /* Indicates that the class is a facet or product_class. */ + #define PROGRAM_IS_FACET_CLASS 0x1 + #define PROGRAM_IS_PRODUCT_CLASS 0x2 +    /* 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:532:       size_t total_size;      #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]; +  +  /* 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;   };      #if 0   static INLINE int CHECK_IDREF_RANGE (int x, const struct program *p)   {    if (x < 0 || x >= p->num_identifier_references)    debug_fatal ("Identifier reference index %d out of range 0..%d\n", x,    p->num_identifier_references - 1);    return x;   }