]> gitweb.factorcode.org Git - factor.git/blob - native/factor.h
999aa1b80777fd5daad4149053d715a85681942d
[factor.git] / native / factor.h
1 #ifndef __FACTOR_H__
2 #define __FACTOR_H__
3
4 #include <errno.h>
5 #include <fcntl.h>
6 #include <limits.h>
7 #include <setjmp.h>
8 #include <stdbool.h>
9 #include <stdio.h>
10 #include <stdlib.h>
11 #include <string.h>
12 #include <sys/param.h>
13 #include <sys/types.h>
14 #include <sys/socket.h>
15 #include <netinet/in.h>
16 #include <arpa/inet.h>
17 #include <unistd.h>
18 #include <sys/time.h>
19
20 #define INLINE inline static
21
22 /* CELL must be 32 bits and your system must have 32-bit pointers */
23 typedef unsigned long int CELL;
24 #define CELLS sizeof(CELL)
25
26 /* must always be 16 bits */
27 typedef unsigned short CHAR;
28 #define CHARS sizeof(CHAR)
29
30 /* must always be 8 bits */
31 typedef unsigned char BYTE;
32 #define BYTES 1
33
34 /* Memory heap size */
35 #define DEFAULT_ARENA (128 * 1024 * 1024)
36 #define STACK_SIZE 1024
37
38 #include "error.h"
39 #include "memory.h"
40 #include "gc.h"
41 #include "types.h"
42 #include "array.h"
43 #include "handle.h"
44 #include "word.h"
45 #include "run.h"
46 #include "fixnum.h"
47 #include "bignum.h"
48 #include "ratio.h"
49 #include "float.h"
50 #include "arithmetic.h"
51 #include "misc.h"
52 #include "string.h"
53 #include "fd.h"
54 #include "file.h"
55 #include "cons.h"
56 #include "image.h"
57 #include "primitives.h"
58 #include "vector.h"
59 #include "socket.h"
60 #include "stack.h"
61 #include "sbuf.h"
62 #include "relocate.h"
63
64 #endif /* __FACTOR_H__ */