ack/util/ncgg/param.h

39 lines
740 B
C
Raw Normal View History

1984-12-17 15:13:39 +00:00
/* $Header$ */
/*
* Miscellaneous sizes, tunable
*/
#define MAXREGS 40
#define MAXPROPS 30
1987-02-05 19:19:01 +00:00
#define MAXTOKENS 100
#define MAXATT 6
#define MAXSETS 150
#define MAXINSTR 200
1984-12-17 15:13:39 +00:00
#define MAXSTRINGS 250
1987-02-05 19:19:01 +00:00
#define MAXNODES 500
1984-12-17 15:13:39 +00:00
#define EMPATMAX 20
1987-02-05 19:19:01 +00:00
#define MAXPATTERNS 40
1984-12-17 15:13:39 +00:00
#define MAXALLREG 5
1987-02-23 23:35:42 +00:00
#define MAXINSTANCES 500
1987-02-05 19:19:01 +00:00
#define MAXMOVES 40
1984-12-17 15:13:39 +00:00
#define MAXTESTS 10
#define MAXSTACKS 30
1987-02-05 19:19:01 +00:00
#define MAXCOERCS 50
1984-12-17 15:13:39 +00:00
#define MAXSPLCOERC 20
1987-02-05 19:19:01 +00:00
#define MAXSPLIT 3
1984-12-17 15:13:39 +00:00
#define MAXPATBYTES 7000
1987-02-05 19:19:01 +00:00
#define MAXREGVAR 10
#define MAXSOURCELINES 6000
1984-12-17 15:13:39 +00:00
/* end of tunable constants */
#define TOKPATMAX 7
#define SZOFSET(n) (((n)+15)/16)
#define SETSIZE SZOFSET(MAXREGS+MAXTOKENS)
#define NEXT(n,max,string) (n<max? n++ : tabovf(string))
#define NEW(x,y) x=(y*)myalloc(sizeof(*(x)))