mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 17:23:02 +00:00
glr.c: prefer true/false to 1/0 in C++
* data/glr.c: here.
This commit is contained in:
10
data/glr.c
10
data/glr.c
@@ -292,12 +292,14 @@ b4_percent_code_get[]dnl
|
|||||||
#define YYSIZEMAX ((size_t) -1)
|
#define YYSIZEMAX ((size_t) -1)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
typedef bool yybool;
|
typedef bool yybool;
|
||||||
|
# define yytrue true
|
||||||
|
# define yyfalse false
|
||||||
#else
|
#else
|
||||||
typedef unsigned char yybool;
|
typedef unsigned char yybool;
|
||||||
|
# define yytrue 1
|
||||||
|
# define yyfalse 0
|
||||||
#endif
|
#endif
|
||||||
#define yytrue 1
|
|
||||||
#define yyfalse 0
|
|
||||||
|
|
||||||
#ifndef YYSETJMP
|
#ifndef YYSETJMP
|
||||||
# include <setjmp.h>
|
# include <setjmp.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user