1 /*	compact.h	4.3	83/05/04	*/
2 
3 #define VAX 11/780
4 
5 
6 #if defined(vax) || defined(sun)
7 typedef int longint;
8 #else
9 typedef long longint;
10 #endif
11 
12 #include <sys/types.h>
13 #include <sys/stat.h>
14 #include <stdio.h>
15 
16 #define LNAME 1024
17 #define NEW flist; flist = flist -> next
18 #define LLEAF 010
19 #define RLEAF 04
20 #define SEEN 02
21 #define FBIT 01
22 #define COMPACTED 017777
23 #define PACKED 017437
24 #define EF 0400
25 #define NC 0401
26 
27 struct charac {
28 #if defined(vax) || defined(pdp11)
29 	char lob, hib;
30 #else
31 	char hib, lob;
32 #endif
33 };
34 
35 union cio {
36 	struct charac chars;
37 	short integ;
38 };
39 
40 struct fpoint {
41 	struct node *fp;
42 	int flags;
43 } in [258];
44 
45 struct index {
46 	struct node *pt;
47 	struct index *next;
48 } dir [514], *head, *flist, *dirp, *dirq;
49 
50 union treep {
51 	struct node *p;
52 	int ch;
53 };
54 
55 struct node {
56 	struct fpoint fath;
57 	union treep sp [2];
58 	struct index *top [2];
59 	longint count [2];
60 } dict [258], *bottom;
61 
62 longint oc;
63 
64 FILE *cfp, *uncfp;
65 
66 struct stat status;
67