2004-07-16 02:26:21 -04:00
|
|
|
#ifndef __FACTOR_H__
|
|
|
|
#define __FACTOR_H__
|
|
|
|
|
2004-07-18 22:14:36 -04:00
|
|
|
#include <errno.h>
|
2004-07-24 00:54:57 -04:00
|
|
|
#include <fcntl.h>
|
2004-07-27 22:52:35 -04:00
|
|
|
#include <limits.h>
|
2004-07-16 02:26:21 -04:00
|
|
|
#include <setjmp.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
2004-07-23 18:52:08 -04:00
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <netinet/in.h>
|
2004-07-24 17:37:42 -04:00
|
|
|
#include <arpa/inet.h>
|
2004-07-24 00:54:57 -04:00
|
|
|
#include <unistd.h>
|
2004-07-16 02:26:21 -04:00
|
|
|
|
|
|
|
#define INLINE inline static
|
|
|
|
|
|
|
|
/* CELL must be 32 bits and your system must have 32-bit pointers */
|
2004-07-27 21:12:22 -04:00
|
|
|
typedef unsigned int CELL;
|
2004-07-16 02:26:21 -04:00
|
|
|
#define CELLS sizeof(CELL)
|
|
|
|
|
2004-07-27 22:52:35 -04:00
|
|
|
#define CELL_MAX INT_MAX
|
|
|
|
#define CELL_MIN INT_MIN
|
|
|
|
|
2004-07-16 02:26:21 -04:00
|
|
|
/* must always be 16 bits */
|
2004-07-27 21:12:22 -04:00
|
|
|
typedef unsigned short CHAR;
|
2004-07-16 02:26:21 -04:00
|
|
|
#define CHARS sizeof(CHAR)
|
|
|
|
|
2004-07-23 20:35:13 -04:00
|
|
|
/* must always be 8 bits */
|
2004-07-27 21:12:22 -04:00
|
|
|
typedef unsigned char BYTE;
|
2004-07-23 20:35:13 -04:00
|
|
|
#define BYTES 1
|
|
|
|
|
2004-07-27 21:12:22 -04:00
|
|
|
typedef long long DCELL;
|
|
|
|
|
2004-07-16 02:26:21 -04:00
|
|
|
/* Memory heap size */
|
|
|
|
#define DEFAULT_ARENA (4 * 1024 * 1024)
|
2004-07-23 01:21:47 -04:00
|
|
|
#define STACK_SIZE 1024
|
2004-07-16 02:26:21 -04:00
|
|
|
|
|
|
|
#include "error.h"
|
|
|
|
#include "memory.h"
|
|
|
|
#include "gc.h"
|
|
|
|
#include "types.h"
|
|
|
|
#include "array.h"
|
2004-07-24 15:11:55 -04:00
|
|
|
#include "handle.h"
|
|
|
|
#include "fixnum.h"
|
2004-07-27 21:12:22 -04:00
|
|
|
#include "bignum.h"
|
2004-07-27 22:52:35 -04:00
|
|
|
#include "math.h"
|
2004-07-24 15:11:55 -04:00
|
|
|
#include "string.h"
|
2004-07-23 20:35:13 -04:00
|
|
|
#include "fd.h"
|
2004-07-24 00:54:57 -04:00
|
|
|
#include "file.h"
|
2004-07-16 02:26:21 -04:00
|
|
|
#include "cons.h"
|
|
|
|
#include "word.h"
|
|
|
|
#include "run.h"
|
|
|
|
#include "image.h"
|
|
|
|
#include "primitives.h"
|
|
|
|
#include "vector.h"
|
2004-07-23 18:52:08 -04:00
|
|
|
#include "socket.h"
|
2004-07-16 02:26:21 -04:00
|
|
|
#include "stack.h"
|
|
|
|
#include "sbuf.h"
|
|
|
|
#include "relocate.h"
|
|
|
|
|
|
|
|
#endif /* __FACTOR_H__ */
|