retroforth/vm/nga-c/config.h
crc 8d9e7c4cb7 nga-c: remove dev-image.c as a dependency (use retro only to implement image:save now)
FossilOrigin-Name: 089b89b28329b5ea8463df2c244b238e6ad8e28b73b5511dc649b7db31584158
2021-04-08 15:25:24 +00:00

38 lines
982 B
C

/* Add any global #define desired here */
#ifndef BIT64
#define CELL int32_t
#define CELL_MIN INT_MIN + 1
#define CELL_MAX INT_MAX - 1
#else
#define CELL int64_t
#define CELL_MIN LLONG_MIN + 1
#define CELL_MAX LLONG_MAX - 1
#endif
#ifndef IMAGE_SIZE
#define IMAGE_SIZE 524288 /* Amount of RAM, in cells */
#endif
#ifndef ADDRESSES
#define ADDRESSES 256 /* Depth of address stack */
#endif
#ifndef STACK_DEPTH
#define STACK_DEPTH 256 /* Depth of data stack */
#endif
#define TIB 1025 /* Location of TIB */
#define D_OFFSET_LINK 0 /* Dictionary Format Info. Update if */
#define D_OFFSET_XT 1 /* you change the dictionary fields. */
#define D_OFFSET_CLASS 2
#define D_OFFSET_NAME 3
#ifdef ENABLE_SOCKETS
#define NUM_DEVICES 9
#else
#define NUM_DEVICES 8 /* Set the number of I/O devices */
#endif
#define MAX_OPEN_FILES 32