Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Parser: Use defined Bool or create one

  • Loading branch information...
commit 3841e55f82895d56e55cdebd60c9b2fbbe84452f 1 parent 4a3952f
@philpep authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/parse/parse.h
View
9 src/parse/parse.h
@@ -21,10 +21,11 @@
#define INCLUDE_CMD "@include"
-#define False 0
-#define True 1
-
-#define bool_t int
+#if defined(Bool)
+#define bool_t Bool
+#else
+typedef enum { False, True } bool_t;
+#endif /* Bool */
struct conf_opt {
char *name;
Please sign in to comment.
Something went wrong with that request. Please try again.