|
|
1.1 root 1: /* values for the instruction field */
2: #define DELTA_TYPE 0300
3: #define DELTA_MOVE 0200
4: #define DELTA_ADD 0100
5:
6: /* number of bytes required to code a value */
7: #define BASE 256
8: #define ONE (BASE)
9: #define TWO (BASE*BASE)
10: #define THREE (BASE*BASE*BASE)
11: #define NBYTE(v) ((v) < ONE ? 1 : ((v) < TWO ? 2 : ((v) < THREE ? 3 : 4)))
12:
13: #define BUFSIZE 2048
14:
15: #ifndef NULL
16: #define NULL (0L)
17: #endif
18:
19: #ifndef NIL
20: #define NIL(type) ((type*)NULL)
21: #endif
22:
23: /* function to copy data from one area to another */
24: #ifdef SYSV
25: #define memcopy(to,fr,n) memcpy(to,fr,n)
26: #define memzero(s,n) memset(s,0,n)
27: #endif
28:
29: #ifdef BSD
30: #define memcopy(to,fr,n) bcopy(fr,to,n)
31: #define memzero(s,n) bzero(s,n)
32: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.