--- gforth/arch/generic/machine.h 2003/08/28 16:08:31 1.23 +++ gforth/arch/generic/machine.h 2007/03/31 12:58:07 1.26 @@ -80,17 +80,35 @@ typedef void *Label; /* feature defines, these setting should be identical to the ones in machpc.fs */ -#define HAS_DCOMPS +#ifndef STANDALONE +#warning hosted system #define HAS_FILE #define HAS_FLOATING -#define HAS_GLOCALS -#define HAS_HASH #define HAS_OS -#define HAS_XCONDS -#define HAS_STANDARDTHREADING #define HAS_DEBUG +#define HAS_GLOCALS +#define HAS_HASH #ifndef HAS_PEEPHOLE #define HAS_PEEPHOLE #endif +#else +#warning standalone system +#undef HAS_FILE +#undef HAS_FLOATING +#undef HAS_OS +#undef HAS_DEBUG +#undef HAS_GLOCALS +#undef HAS_HASH +#define HAS_F83HEADERSTRING +#ifndef PUTC +# define PUTC(x) putc(x, stdout) +#endif +#ifndef TYPE +# define TYPE(x, l) fwrite(x, l, 1, stdout) +#endif +#endif +#define HAS_DCOMPS +#define HAS_XCONDS +#define HAS_STANDARDTHREADING #define RELINFOBITS 8