1:     /* because of external definitions, this code should occur only once */
   2: # ifdef ASCII
   3: int ctable[2*NCH] {
   4:   0,  1,  2,  3,  4,  5,  6,  7,  8,  9,
   5:  10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
   6:  20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
   7:  30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
   8:  40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
   9:  50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
  10:  60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
  11:  70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
  12:  80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
  13:  90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
  14: 100,101,102,103,104,105,106,107,108,109,
  15: 110,111,112,113,114,115,116,117,118,119,
  16: 120,121,122,123,124,125,126,127};
  17: # endif
  18: # ifdef EBCDIC
  19: int ctable[2*NCH] {
  20:   0,  1,  2,  3,  4,  5,  6,  7,  8,  9,
  21:  10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
  22:  20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
  23:  30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
  24:  40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
  25:  50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
  26:  60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
  27:  70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
  28:  80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
  29:  90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
  30: 100,101,102,103,104,105,106,107,108,109,
  31: 110,111,112,113,114,115,116,117,118,119,
  32: 120,121,122,123,124,125,126,127,128,129,
  33: 130,131,132,133,134,135,136,137,138,139,
  34: 140,141,142,143,144,145,146,147,148,149,
  35: 150,151,152,153,154,155,156,157,158,159,
  36: 160,161,162,163,164,165,166,167,168,169,
  37: 170,171,172,173,174,175,176,177,178,179,
  38: 180,181,182,183,184,185,186,187,188,189,
  39: 190,191,192,193,194,195,196,197,198,199,
  40: 200,201,202,203,204,205,206,207,208,209,
  41: 210,211,212,213,214,215,216,217,218,219,
  42: 220,221,222,223,224,225,226,227,228,229,
  43: 230,231,232,233,234,235,236,237,238,239,
  44: 240,241,242,243,244,245,246,247,248,249,
  45: 250,251,252,253,254,255};
  46: # endif
  47: int ZCH NCH;
  48: FILE *fout NULL, *errorf {stdout};
  49: int sect DEFSECTION;
  50: int prev '\n';  /* previous input character */
  51: int pres '\n';  /* present input character */
  52: int peek '\n';  /* next input character */
  53: char *pushptr pushc;
  54: char *slptr slist;
  55: 
  56: # if (unix || ibm)
  57: char *cname "/usr/lib/lex/ncform";
  58: char *ratname "/usr/lib/lex/nrform";
  59: # endif
  60: 
  61: # ifdef gcos
  62: char *cname "pounce/lexcform";
  63: char *ratname "pounce/lexrform";
  64: # endif
  65: int ccount 1;
  66: int casecount 1;
  67: int aptr 1;
  68: int nstates NSTATES, maxpos MAXPOS;
  69: int treesize TREESIZE, ntrans NTRANS;
  70: int yytop;
  71: int outsize NOUTPUT;
  72: int sptr 1;
  73: int optim TRUE;
  74: int report 2;
  75: int debug;      /* 1 = on */
  76: int charc;
  77: int sargc;
  78: char **sargv;
  79: char buf[520];
  80: int ratfor;     /* 1 = ratfor, 0 = C */
  81: int yyline;     /* line number of file */
  82: int eof;
  83: int lgatflg;
  84: int divflg;
  85: int funcflag;
  86: int pflag;
  87: int chset;  /* 1 = char set modified */
  88: FILE *fin, *fother;
  89: int fptr;
  90: int *name;
  91: int *left;
  92: int *right;
  93: int *parent;
  94: char *nullstr;
  95: int tptr;
  96: char pushc[TOKENSIZE];
  97: char slist[STARTSIZE];
  98: char **def, **subs, *dchar;
  99: char **sname, *schar;
 100: char *ccl;
 101: char *ccptr;
 102: char *dp, *sp;
 103: int dptr;
 104: char *bptr;     /* store input position */
 105: char *tmpstat;
 106: int count;
 107: int **foll;
 108: int *nxtpos;
 109: int *positions;
 110: int *gotof;
 111: int *nexts;
 112: char *nchar;
 113: int **state;
 114: int *sfall;     /* fallback state num */
 115: char *cpackflg;     /* true if state has been character packed */
 116: int *atable;
 117: int nptr;
 118: char symbol[NCH];
 119: char cindex[NCH];
 120: int xstate;
 121: int stnum;
 122: char match[NCH];
 123: char extra[NACTIONS];
 124: char *pchar, *pcptr;
 125: int pchlen TOKENSIZE;
 126:  long rcount;
 127: int *verify, *advance, *stoff;
 128: int scon;
 129: char *psave;
 130: int buserr(), segviol();

Defined variables

DEFSECTION defined in line 49; never used
MAXPOS defined in line 68; never used
NCH defined in line 47; used 5 times
NOUTPUT defined in line 71; never used
NSTATES defined in line 68; never used
NTRANS defined in line 69; never used
TOKENSIZE defined in line 125; used 1 times
  • in line 96
TREESIZE defined in line 69; never used
TRUE defined in line 73; never used
ZCH defined in line 47; used 13 times
advance defined in line 127; used 10 times
aptr defined in line 67; used 7 times
atable defined in line 116; used 12 times
bptr defined in line 104; used 2 times
buf defined in line 79; used 10 times
casecount defined in line 66; used 11 times
ccl defined in line 100; used 8 times
ccount defined in line 65; used 6 times
ccptr defined in line 101; used 14 times
charc defined in line 76; used 21 times
chset defined in line 87; used 4 times
cindex defined in line 119; used 16 times
cname defined in line 62; used 3 times
count defined in line 106; used 14 times
cpackflg defined in line 115; used 13 times
ctable defined in line 19; used 17 times
dchar defined in line 98; used 6 times
debug defined in line 75; used 31 times
def defined in line 98; used 11 times
divflg defined in line 84; used 6 times
dp defined in line 102; used 8 times
dptr defined in line 103; used 5 times
eof defined in line 82; used 8 times
extra defined in line 123; used 3 times
foll defined in line 107; used 10 times
fptr defined in line 89; used 3 times
funcflag defined in line 85; used 4 times
gotof defined in line 110; used 14 times
left defined in line 91; used 55 times
lgatflg defined in line 83; used 3 times
match defined in line 122; used 8 times
maxpos defined in line 68; used 6 times
name defined in line 90; used 25 times
nchar defined in line 112; used 29 times
nexts defined in line 111; used 21 times
nptr defined in line 117; used 15 times
nstates defined in line 68; used 15 times
ntrans defined in line 69; used 8 times
nullstr defined in line 94; used 26 times
nxtpos defined in line 108; used 7 times
optim defined in line 73; used 4 times
outsize defined in line 71; used 8 times
parent defined in line 93; used 20 times
pchar defined in line 124; used 7 times
pchlen defined in line 125; used 6 times
pcptr defined in line 124; used 8 times
peek defined in line 52; used 29 times
pflag defined in line 86; never used
positions defined in line 109; used 6 times
pres defined in line 51; used 3 times
prev defined in line 50; used 9 times
psave defined in line 129; used 3 times
pushc defined in line 96; used 2 times
pushptr defined in line 53; used 6 times
ratfor defined in line 80; used 20 times
ratname defined in line 63; used 2 times
rcount defined in line 126; used 1 times
report defined in line 74; used 18 times
right defined in line 92; used 24 times
sargc defined in line 77; used 4 times
sargv defined in line 78; used 5 times
schar defined in line 99; used 6 times
scon defined in line 128; used 3 times
sect defined in line 49; used 6 times
sfall defined in line 114; used 15 times
slist defined in line 97; used 2 times
slptr defined in line 54; used 5 times
sname defined in line 99; used 16 times
sp defined in line 102; used 9 times
sptr defined in line 72; used 5 times
state defined in line 113; used 14 times
stnum defined in line 121; used 30 times
stoff defined in line 127; used 12 times
subs defined in line 98; used 9 times
symbol defined in line 118; used 28 times
tmpstat defined in line 105; used 15 times
tptr defined in line 95; used 50 times
treesize defined in line 69; used 19 times
verify defined in line 127; used 14 times
xstate defined in line 120; used 4 times
yyline defined in line 81; used 10 times
yytop defined in line 70; used 10 times

Usage of this include

once.c used 1 times
Last modified: 1983-12-09
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1282
Valid CSS Valid XHTML 1.0 Strict