Branch: Tag:

2002-04-07

2002-04-07 19:30:50 by Martin Stjernholm <mast@lysator.liu.se>

Avoid the dependency on pikecode.h in program.h. The bytecode method specific
type for PIKE_OPCODE_T had to move to program.h for this.

Rev: src/code/README.txt:1.13
Rev: src/code/bytecode.h:1.5
Rev: src/code/computedgoto.h:1.4
Rev: src/code/ia32.h:1.14
Rev: src/code/ppc32.h:1.11
Rev: src/code/sparc.h:1.10
Rev: src/encode.c:1.139
Rev: src/program.h:1.154

5:   \*/      /* -  * $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
17:   #include "svalue.h"   #include "time_stuff.h"   #include "program_id.h" - #include "pikecode.h" +    #include "block_alloc_h.h"      #define STRUCT
103:   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)