|
|
1.1 root 1: #include <fio.h>
2: #include <ctype.h>
3: #include <libc.h>
4:
5: #define BLKSIZE 1024 /* size of reported disk blocks */
6: #define MAXLIN 10000
7: #define MAXPOS 20000
8: #define NCHARS 256
9: #define NSTATES 128
10: #define FINAL -1
11: #define LEFT '\177' /* serves as ^ */
12: #define RIGHT '\n' /* serves as record separator and as $ */
13:
14: typedef struct State
15: {
16: struct State *gotofn[NCHARS];
17: int out;
18: } State;
19: extern State states[];
20: State *nxtst();
21: int state[];
22: int line;
23: int name[];
24: int left[];
25: int right[];
26: int parent[];
27: int foll[];
28: int positions[];
29: char chars[];
30: int nxtpos;
31: int nxtfoll;
32: int inxtpos;
33: int nxtfoll;
34: int nxtchar;
35: int tmpstat[];
36: State *istat;
37: int nstate;
38: int xstate;
39: int count;
40: char *input;
41:
42: char reinit;
43:
44: int begout;
45: int begcnt;
46: int begstat[];
47:
48: int colpos[];
49: int cntpos;
50:
51: long lnum;
52: int bflag;
53: int cflag;
54: int fflag;
55: int hflag;
56: int iflag;
57: int lflag;
58: int nflag;
59: int sflag;
60: int vflag;
61: int nfile;
62: long tln;
63: int nsucc;
64: int badbotch;
65:
66: int expfile;
67:
68: int bmegrep;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.