Branch: Tag:

2003-03-20

2003-03-20 17:41:04 by Martin Stjernholm <mast@lysator.liu.se>

Added PIKE_INSTR_T to avoid some #ifdef HAVE_COMPUTED_GOTO mess here
and there.

Rev: src/program.h:1.179

2:   || 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.178 2003/02/24 21:00:45 mast Exp $ + || $Id: program.h,v 1.179 2003/03/20 17:41:04 mast Exp $   */      #ifndef PROGRAM_H
109:   #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)