From ac5982b738f70837b7f3fe61ec940b448746cbce Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Tue, 16 Jan 1979 09:46:55 -0500 Subject: [PATCH] Research V7 development Work on file usr/src/cmd/prep.h Co-Authored-By: Dennis Ritchie Synthesized-from: v7 --- usr/src/cmd/prep.h | 71 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 usr/src/cmd/prep.h diff --git a/usr/src/cmd/prep.h b/usr/src/cmd/prep.h new file mode 100644 index 0000000000..b7b0da25ac --- /dev/null +++ b/usr/src/cmd/prep.h @@ -0,0 +1,71 @@ +# define NUMC 128 +# define NUMS 3 +# define NUMA 8 +# define PTRI 1600 +# define CHARI 16000 +# define OUT 3 + +# define SKIP 0 +# define COLLECT 1 +# define SKIP2 2 +# define WIDTH 6 +struct { + char *beg; + int ct; + long wdno; + } temp[30]; + +int lflag; +int puncfl; +int hsw; +int san; +int t1; + + + +char tab[NUMS][NUMC]; + +int coll(); +int save(); +int hyphen(); +int hyp1(); +int hyp2(); +int error(); +int ctout(); +int bsp(); +int bsp1(); +int gobble2(); +int bslash(); +int punc(); + +char line[300]; +int l; +int lno; +int c; + +int only; +int cs; +int (*flag[8])(); +int fl; +int wdflg; +long wdnum; +char num[WIDTH + 1]; +int igflg; + +struct htab { + int hsiz; + int ssiz; + int nsym; + int curb; + int *hptr; + char *symt; + }; + +struct htab itab; + +int ipsp[PTRI]; +char issp[CHARI]; + + + +FILE *fi; -- 2.20.1