mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 14:23:04 +00:00
* src/reduce.h: New file.
Propagate its inclusion. * src/reduce.c: Topological sort and other formatting changes. (bool, TRUE, FALSE): Move their definition to... * src/system.h: here.
This commit is contained in:
11
src/system.h
11
src/system.h
@@ -148,3 +148,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;
|
||||
|
||||
Reference in New Issue
Block a user