Pristine Ack-5.5
[Ack-5.5.git] / util / ncgg / var.c
1 /*
2  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3  * See the copyright notice in the ACK home directory, in the file "Copyright".
4  */
5 #ifndef NORCSID
6 static char rcsid[]= "$Id: var.c,v 0.6 1994/06/24 10:38:29 ceriel Exp $";
7 #endif
8
9 #include "param.h"
10 #include "reg.h"
11 #include "property.h"
12 #include "token.h"
13 #include "set.h"
14 #include "instruct.h"
15 #include "lookup.h"
16 #include <cgg_cg.h>
17
18 int wordsize;
19 int pointersize;
20 int nregs=1;
21 int nprops;
22 int ntokens=1;
23 int nsets;
24 int ninstr;
25 int codeindex;
26 int empatlen,emrepllen,emmnem[EMPATMAX];
27 int maxempatlen, maxemrepllen;
28 int empatexpr;
29 int tokpatlen,tokrepllen,tokpatset[TOKPATMAX],tokpatro[TOKPATMAX];
30 int maxtokpatlen, maxtokrepllen;
31 int nallreg,allreg[MAXALLREG];
32 int cursetno = -1;
33 int allsetno;
34 int inproc=0;   /* scanning "procedure" */
35 int callproc=0;
36 int fc1=1,fc2=1,fc3=1,fc4=1;
37 int maxmembers=0;
38 int regclass=1;
39 int maxtokensize=0;
40 int rvused=0;
41 int nregvar[4];
42 int rvsize[4];
43 int rvnumbers[4][MAXREGVAR];
44 int procarg[MAXPROCARG];
45 int maxprocargs, nprocargs;
46
47 reginfo l_regs[MAXREGS];
48 propinfo l_props[MAXPROPS];
49 token_p l_tokens[MAXTOKENS];
50 set_t l_sets[MAXSETS];
51 instr_t l_instr[MAXINSTR];
52 symbol *symhash[NSYMHASH];