[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
glr.c: prefer true/false to 1/0 in C++
From: |
Akim Demaille |
Subject: |
glr.c: prefer true/false to 1/0 in C++ |
Date: |
Tue, 18 Sep 2018 17:14:11 +0200 |
commit 7a916050bb68a5c69f3f7d5a6b8fccbe5e6bae37
Author: Akim Demaille <address@hidden>
Date: Tue Sep 18 06:12:11 2018 +0200
glr.c: prefer true/false to 1/0 in C++
* data/glr.c: here.
diff --git a/data/glr.c b/data/glr.c
index a67c7c87..8d93b148 100644
--- a/data/glr.c
+++ b/data/glr.c
@@ -292,12 +292,14 @@ b4_percent_code_get[]dnl
#define YYSIZEMAX ((size_t) -1)
#ifdef __cplusplus
- typedef bool yybool;
+ typedef bool yybool;
+# define yytrue true
+# define yyfalse false
#else
- typedef unsigned char yybool;
+ typedef unsigned char yybool;
+# define yytrue 1
+# define yyfalse 0
#endif
-#define yytrue 1
-#define yyfalse 0
#ifndef YYSETJMP
# include <setjmp.h>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- glr.c: prefer true/false to 1/0 in C++,
Akim Demaille <=