summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 10065c7)
raw | patch | inline | side by side (parent: 10065c7)
author | Manuel Sanmartin (no email) <collectd@verplant.org> | |
Mon, 23 Nov 2009 20:57:29 +0000 (21:57 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 23 Nov 2009 21:23:17 +0000 (22:23 +0100) |
They are defines in <sys/types.h> under AIX.
src/liboconfig/parser.y | patch | blob | history | |
src/liboconfig/scanner.l | patch | blob | history |
index 49cd139dbd76bd1e4505b3184194d6066a1be11b..5b7aa94a9e4deec315c5175f8503a4900536e3c1 100644 (file)
--- a/src/liboconfig/parser.y
+++ b/src/liboconfig/parser.y
}
%token <number> NUMBER
-%token <boolean> TRUE FALSE
+%token <boolean> BTRUE BFALSE
%token <string> QUOTED_STRING UNQUOTED_STRING
%token SLASH OPENBRAC CLOSEBRAC EOL
argument:
NUMBER {$$.value.number = $1; $$.type = OCONFIG_TYPE_NUMBER;}
- | TRUE {$$.value.boolean = 1; $$.type = OCONFIG_TYPE_BOOLEAN;}
- | FALSE {$$.value.boolean = 0; $$.type = OCONFIG_TYPE_BOOLEAN;}
+ | BTRUE {$$.value.boolean = 1; $$.type = OCONFIG_TYPE_BOOLEAN;}
+ | BFALSE {$$.value.boolean = 0; $$.type = OCONFIG_TYPE_BOOLEAN;}
| string {$$.value.string = $1; $$.type = OCONFIG_TYPE_STRING;}
;
index b559e863179ebfebaf1acc4219baa24522897e5d..9f0cd8e3cc51da8838661ab62904b20975017337 100644 (file)
--- a/src/liboconfig/scanner.l
+++ b/src/liboconfig/scanner.l
"/" {return (SLASH);}
"<" {return (OPENBRAC);}
">" {return (CLOSEBRAC);}
-{BOOL_TRUE} {yylval.boolean = 1; return (TRUE);}
-{BOOL_FALSE} {yylval.boolean = 0; return (FALSE);}
+{BOOL_TRUE} {yylval.boolean = 1; return (BTRUE);}
+{BOOL_FALSE} {yylval.boolean = 0; return (BFALSE);}
{IPV4_ADDR} {yylval.string = yytext; return (UNQUOTED_STRING);}