--- gforth/Attic/forth.h 1994/10/03 18:24:02 1.11 +++ gforth/Attic/forth.h 1995/02/23 20:17:19 1.14 @@ -13,14 +13,9 @@ typedef void *Label; #define DOVAR 2 #define DOUSER 3 #define DODEFER 4 -#define DODOES 5 -#define DOESJUMP 6 - -/* Some versions of some unices (Linux) have the symbol BIG_ENDIAN defined - in their standard headers. Make sure it's undefined -- Lennart */ -#ifdef BIG_ENDIAN -#undef BIG_ENDIAN -#endif +#define DOSTRUC 5 +#define DODOES 6 +#define DOESJUMP 7 #include "machine.h" @@ -65,12 +60,12 @@ Label *engine(Xt *ip, Cell *sp, Cell *rp #define MAKE_DOES_CF(cfa,does_code) ({MAKE_CF(cfa,symbols[DODOES]); \ ((Cell *)cfa)[1] = (Cell)does_code;}) /* the does handler resides between DOES> and the following Forth code */ -#define DOES_HANDLER_SIZE 8 +#define DOES_HANDLER_SIZE (2*sizeof(Cell)) #define MAKE_DOES_HANDLER(addr) 0 /* do nothing */ #endif #ifdef DEBUG -# define NAME(string) fprintf(stderr,"%08x: "string"\n",(int)ip); +# define NAME(string) fprintf(stderr,"%08x: "string"\n",(Cell)ip); #else # define NAME(string) #endif