--- gforth/vmgen-ex/mini.h 2001/05/01 10:20:56 1.2 +++ gforth/vmgen-ex/mini.h 2002/06/02 17:02:56 1.4 @@ -21,8 +21,13 @@ #include +#ifdef __GNUC__ typedef void *Label; typedef void *Inst; /* for direct threading, the same as Label */ +#else +typedef long Label; +typedef long Inst; +#endif typedef long Cell; extern Inst *vm_prim; @@ -44,6 +49,7 @@ void vm_disassemble(Inst *ip, Inst *endp void vm_count_block(Inst *ip); struct block_count *block_insert(Inst *ip); void vm_print_profile(FILE *file); +#define VM_IS_INST(inst, n) ((inst) == vm_prim[n]) /* mini type-specific support functions */ void genarg_i(Inst **vmcodepp, Cell i);