ack/util/LLgen/lib/incl

27 lines
681 B
Plaintext
Raw Normal View History

1984-10-08 14:14:53 +00:00
/* $Header$ */
#ifdef LL_DEBUG
#define LL_assert(x) if(!(x)) LL_badassertion("x",__FILE__,__LINE__)
#else
#define LL_assert(x) /* nothing */
#endif
1984-10-08 14:14:53 +00:00
extern int LLsymb;
extern char LLsets[];
#define LL_SAFE(x) /* Nothing */
#define LL_SSCANDONE(x) if (LLsymb != x) LLerror(x); else
#define LL_SCANDONE(x) if (LLsymb != x) LLerror(x); else
#define LL_T_NOSCANDONE(x) LLscan(x)
1984-10-08 14:14:53 +00:00
# include "Lpars.h"
extern unsigned int LLscnt[];
extern unsigned int LLtcnt[];
extern int LLcsymb;
extern int LL_symb;
#define LLsdecr(d) {LL_assert(LLscnt[d] > 0); LLscnt[d]--;}
#define LLtdecr(d) {LL_assert(LLtcnt[d] > 0); LLtcnt[d]--;}
#define LLsincr(d) LLscnt[d]++
#define LLtincr(d) LLtcnt[d]++