pike.git
/
src
/
program.h
version
»
Context lines:
10
20
40
80
file
none
3
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.
174
2003/
02
/
24
21
:
00
:
44
mast Exp $
+
|| $Id: program.h,v 1.
175
2003/
03
/
20
18
:
02
:
57
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"
pike.git/src/program.h:102:
#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 #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 *
+
#define PIKE_INSTR_T void *
#else #define PIKE_OPCODE_T unsigned INT8 #endif
-
+
#ifndef PIKE_INSTR_T
+
/* The type for an opcode instruction identifier (not packed). In all
+
* cases but PIKE_BYTECODE_GOTO, this is n - F_OFFSET where n is the
+
* number in the Pike_opcodes enum. */
+
#define PIKE_INSTR_T unsigned int
+
#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.