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.177 2003/10/20 13:14:28 mast Exp $ + || $Id: program.h,v 1.178 2003/12/03 09:36:36 grubba Exp $   */      #ifndef PROGRAM_H   #define PROGRAM_H      #include <stdarg.h>   #include "global.h"   #include "pike_types.h"   #include "pike_macros.h"   #include "svalue.h"
pike.git/src/program.h:88:   #define STRUCT_NODE_S_DECLARED   struct node_s;   #endif      #ifndef STRUCT_OBJECT_DECLARED   #define STRUCT_OBJECT_DECLARED   struct object;   #endif      /* Byte-code method identification. */ + #define PIKE_BYTECODE_PORTABLE -1 /* Only used by the codec. */   #define PIKE_BYTECODE_DEFAULT 0   #define PIKE_BYTECODE_GOTO 1   #define PIKE_BYTECODE_SPARC 2   #define PIKE_BYTECODE_IA32 3   #define PIKE_BYTECODE_PPC32 4      #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
pike.git/src/program.h:142:    * 2^32 efuns    * 2^8 local variables (and arguments)    */      union idptr   {    void (*c_fun)(INT32);    ptrdiff_t offset;   };    + #define IDENTIFIER_VARIABLE 0   #define IDENTIFIER_PIKE_FUNCTION 1   #define IDENTIFIER_C_FUNCTION 2   #define IDENTIFIER_FUNCTION 3   #define IDENTIFIER_CONSTANT 4 -  + #define IDENTIFIER_TYPE_MASK 7 +    #define IDENTIFIER_VARARGS 8 /* Used for functions only. */   #define IDENTIFIER_HAS_BODY 16 /* Function has a body (set already in pass 1). */   #define IDENTIFIER_SCOPED 32 /* This is used for local functions only */   #define IDENTIFIER_SCOPE_USED 64 /* contains scoped local functions */   #define IDENTIFIER_ALIAS 128 /* This identifier is an alias. */      #define IDENTIFIER_IS_FUNCTION(X) ((X) & IDENTIFIER_FUNCTION)   #define IDENTIFIER_IS_PIKE_FUNCTION(X) ((X) & IDENTIFIER_PIKE_FUNCTION) -  + #define IDENTIFIER_IS_C_FUNCTION(X) ((X) & IDENTIFIER_C_FUNCTION)   #define IDENTIFIER_IS_CONSTANT(X) ((X) & IDENTIFIER_CONSTANT)   #define IDENTIFIER_IS_VARIABLE(X) (!((X) & (IDENTIFIER_FUNCTION | IDENTIFIER_CONSTANT)))   #define IDENTIFIER_IS_ALIAS(X) ((X) & IDENTIFIER_ALIAS)      #define IDENTIFIER_MASK 255      /*    * Every constant, class, function and variable    * gets exactly one of these.    */