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 as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/      /* -  * $Id: program.h,v 1.153 2002/03/01 22:42:40 nilsson Exp $ +  * $Id: program.h,v 1.154 2002/04/07 19:30:08 mast Exp $    */   #ifndef PROGRAM_H   #define PROGRAM_H      #include <stdarg.h>   #include "global.h"   #include "pike_types.h"   #include "pike_macros.h"   #include "svalue.h"   #include "time_stuff.h"   #include "program_id.h" - #include "pikecode.h" +    #include "block_alloc_h.h"      #define STRUCT   #include "compilation.h"      #define EXTERN   #include "compilation.h"      /* Needed to support dynamic loading on NT */   PMOD_PROTO extern struct program_state * Pike_compiler;
pike.git/src/program.h:96:   #ifndef STRUCT_NODE_S_DECLARED   #define STRUCT_NODE_S_DECLARED   struct node_s;   #endif      #ifndef STRUCT_OBJECT_DECLARED   #define STRUCT_OBJECT_DECLARED   struct object;   #endif    + #if PIKE_BYTECODE_METHOD == PIKE_BYTECODE_IA32 + #define PIKE_OPCODE_T unsigned INT8 + #elif PIKE_BYTECODE_METHOD == PIKE_BYTECODE_SPARC + #define PIKE_OPCODE_T unsigned INT32 + #elif PIKE_BYTECODE_METHOD == PIKE_BYTECODE_PPC32 + #define PIKE_OPCODE_T unsigned INT32 + #elif PIKE_BYTECODE_METHOD == PIKE_BYTECODE_GOTO + #define PIKE_OPCODE_T void * + #else + #define PIKE_OPCODE_T unsigned INT8 + #endif +    /* I need:    * a) one type that can point to a callable function.    * (C function, or object->fun)    * This can for instance be an svalue.    *    * b) one type that once the object/program is known can point    * to the C/PIKE function body.    *    * c) A number of flags to send to 'add_simul_efun' to specify side effects    * and such.