mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 18:53:04 +00:00
glr.c: prefer true/false to 1/0 in C++
* data/glr.c: here.
This commit is contained in:
@@ -293,11 +293,13 @@ b4_percent_code_get[]dnl
|
|||||||
|
|
||||||
#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;
|
||||||
#endif
|
|
||||||
# define yytrue 1
|
# define yytrue 1
|
||||||
# define yyfalse 0
|
# define yyfalse 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef YYSETJMP
|
#ifndef YYSETJMP
|
||||||
# include <setjmp.h>
|
# include <setjmp.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user