summaryrefslogtreecommitdiff
path: root/openbox/parse.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-04 18:59:25 +0000
committerDana Jansens <danakj@orodu.net>2003-04-04 18:59:25 +0000
commit5da148530ee8931c8ed7771c373146afaf2b14e1 (patch)
tree582dd43b75cf44f068761e8b6cfc6cd6d9c4d59c /openbox/parse.h
parent8dc158ac2df602a7a59b469f3efdfd5746300578 (diff)
attempting to parse lists
Diffstat (limited to 'openbox/parse.h')
-rw-r--r--openbox/parse.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/openbox/parse.h b/openbox/parse.h
index f2d22f81..bd6c03f8 100644
--- a/openbox/parse.h
+++ b/openbox/parse.h
@@ -10,8 +10,7 @@ typedef enum {
TOKEN_STRING = STRING,
TOKEN_IDENTIFIER = IDENTIFIER,
TOKEN_BOOL = BOOL,
- TOKEN_LBRACKET = '(',
- TOKEN_RBRACKET = ')',
+ TOKEN_LIST,
TOKEN_LBRACE = '{',
TOKEN_RBRACE = '}',
TOKEN_EQUALS = '=',
@@ -19,7 +18,12 @@ typedef enum {
TOKEN_NEWLINE = '\n'
} ParseTokenType;
-typedef void (*ParseFunc)(ParseTokenType type, union ParseToken token);
+typedef struct {
+ ParseTokenType type;
+ union ParseTokenData data;
+} ParseToken;
+
+typedef void (*ParseFunc)(ParseToken *token);
void parse_startup();
void parse_shutdown();
@@ -33,7 +37,7 @@ void parse_reg_section(char *section, ParseFunc func);
/* Free a parsed token's allocated memory */
-void parse_free_token(ParseTokenType type, union ParseToken token);
+void parse_free_token(ParseToken *token);
/* Display an error message while parsing.
found in parse.yacc */