--- gforth/Attic/forth.h 1994/05/05 17:05:34 1.3 +++ gforth/Attic/forth.h 1994/05/18 17:29:53 1.5 @@ -1,5 +1,5 @@ /* - $Id: forth.h,v 1.3 1994/05/05 17:05:34 pazsan Exp $ + $Id: forth.h,v 1.5 1994/05/18 17:29:53 pazsan Exp $ Copyright 1992 by the ANSI figForth Development Group */ @@ -21,6 +21,8 @@ typedef void *Label; /* Forth data types */ typedef int Bool; #define FLAG(b) (-(b)) +#define FILEIO(error) (FLAG(error) & -37) +#define FILEEXIST(error) (FLAG(error) & -38) #define F_TRUE (FLAG(0==0)) #define F_FALSE (FLAG(0!=0)) @@ -35,7 +37,7 @@ typedef Label Xt; typedef Label *Xt; #endif -Label *engine(Xt *ip, Cell *sp, Cell *rp, Float *fp); +Label *engine(Xt *ip, Cell *sp, Cell *rp, Float *fp, Address lp); #ifndef DIRECT_THREADED /* i.e. indirect threaded */ @@ -62,7 +64,7 @@ Label *engine(Xt *ip, Cell *sp, Cell *rp #endif #ifdef DEBUG -# define NAME(string) printf("%08x: %s\n",(int)ip,string); +# define NAME(string) printf("%08x: "string"\n",(int)ip); #else # define NAME(string) #endif