X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/499daa504f93cef3d1d2054634f021d63761c6f9..5a35a6cb7199aa58dc0b0cc6386872f5da18e1fe:/src/system.h diff --git a/src/system.h b/src/system.h index 56a0ba0e..82d31c57 100644 --- a/src/system.h +++ b/src/system.h @@ -24,6 +24,8 @@ #include +#include + #ifdef MSDOS # include #endif @@ -148,3 +150,14 @@ extern int errno; #define SETBIT(x, i) ((x)[(i)/BITS_PER_WORD] |= (1<<((i) % BITS_PER_WORD))) #define RESETBIT(x, i) ((x)[(i)/BITS_PER_WORD] &= ~(1<<((i) % BITS_PER_WORD))) #define BITISSET(x, i) (((x)[(i)/BITS_PER_WORD] & (1<<((i) % BITS_PER_WORD))) != 0) + + +/*-----------. +| Booleans. | +`-----------*/ + +#ifndef TRUE +# define TRUE (1) +# define FALSE (0) +#endif +typedef int bool;