Commit | Line | Data |
---|---|---|
185d96e1 GC |
1 | #define M 3 |
2 | #define C 100 | |
3 | ||
4 | /* | |
5 | * character Q structure | |
6 | */ | |
7 | struct clist | |
8 | { | |
9 | int c_cc; | |
10 | int c_cf; | |
11 | int c_cl; | |
12 | }; | |
13 | ||
14 | struct chan | |
15 | { | |
16 | char cflag; | |
17 | char m, c; | |
18 | struct chan *dest; | |
19 | struct clist ioq; | |
20 | }; | |
21 | ||
22 | /* c flags */ | |
23 | #define BLOCK 01 | |
24 | ||
25 | struct line | |
26 | { | |
27 | char xbuf[24+2]; | |
28 | char rbuf[100+2]; | |
29 | char rseq; | |
30 | char xseq; | |
31 | char ackf; | |
32 | char xflag; | |
33 | char state; | |
34 | char time; | |
35 | int sum; | |
36 | char *ip; | |
37 | char *ep; | |
38 | }; | |
39 | #define WWAIT 02 | |
40 | #define CRUN 04 | |
41 | #define RWAIT 010 | |
42 | #define ALLOC 020 | |
43 | #define DIS 040 | |
44 | #define DLY 0100 | |
45 | ||
46 | /* | |
47 | * machine structure | |
48 | */ | |
49 | struct mach | |
50 | { | |
51 | char mflag; | |
52 | char rchan; | |
53 | char rcount; | |
54 | char xchan; | |
55 | char xcount; | |
56 | struct clist ackq; | |
57 | struct clist datq; | |
58 | struct clist disq; | |
59 | struct chan *chanp[128]; | |
60 | }; | |
61 | ||
62 | /* m flags */ | |
63 | #define RNEXT 01 | |
64 | #define MRUN 04 | |
65 | #define XNEXT 010 | |
66 | ||
67 | /* | |
68 | * trace buffer | |
69 | */ | |
70 | #define TBSIZ 100 |