Pristine Ack-5.5
[Ack-5.5.git] / util / ncgg / param.h
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 /* $Id: param.h,v 0.12 1994/06/24 10:37:56 ceriel Exp $ */
6
7 /*
8  * Miscellaneous sizes, tunable 
9  */
10
11 #include <local.h>
12 #if BIGMACHINE
13 #define BORS(x,y) x
14 #else
15 #define BORS(x,y) y
16 #endif
17
18 #define MAXREGS BORS(40,30)
19 #define MAXPROPS BORS(30,20)
20 #define MAXTOKENS BORS(100,60)
21 #define MAXATT 6
22 #define MAXSETS BORS(200,100)
23 #define MAXINSTR BORS(200,125)
24 #define MAXSTRINGS BORS(300,200)
25 #define MAXNODES BORS(1200,350)
26 #define EMPATMAX BORS(20,10)
27 #define MAXPATTERNS BORS(40,30)
28 #define MAXALLREG 5
29 #define MAXINSTANCES BORS(500,300)
30 #define MAXMOVES BORS(40,20)
31 #define MAXTESTS 10
32 #define MAXSTACKS BORS(30,20)
33 #define MAXCOERCS BORS(50,30)
34 #define MAXSPLCOERC BORS(20,10)
35 #define MAXSPLIT 3
36 #define MAXPATBYTES BORS(14000,7000)
37 #define MAXREGVAR 10
38 #define MAXSOURCELINES 7000
39 #define MAXPROCARG 10
40
41 /* end of tunable constants */
42
43 #define TOKPATMAX 7
44
45 #define SZOFSET(n) (((n)+15)/16)
46
47 #define SETSIZE SZOFSET(MAXREGS+MAXTOKENS)
48
49 #define NEXT(n,max,string) (n<max? n++ : tabovf(string))
50 #define NEW(x,y) x=(y*)myalloc(sizeof(*(x)))
51
52 #include <em_spec.h>
53 #define op_lab  (sp_lmnem + 1)