summaryrefslogtreecommitdiff
path: root/glcpp.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-13 07:38:29 -0700
committerCarl Worth <cworth@cworth.org>2010-05-13 07:38:29 -0700
commit9f62a7e9e25efd79ebf46c64166876436f88f08a (patch)
tree091f1e23fd3a8b6965951c96ec4eeee578fe5a1b /glcpp.h
parent8bcb6f1777ff8f763c67552c111ce8e637d78410 (diff)
Make the lexer distinguish between identifiers and defined macros.
This is just a minor style improvement for now. But the same mechanism, (having the lexer peek into the table of defined macros), will be essential when we add function-like macros in addition to the current object-like macros.
Diffstat (limited to 'glcpp.h')
-rw-r--r--glcpp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/glcpp.h b/glcpp.h
index 8472570ccb..39d6d5d0eb 100644
--- a/glcpp.h
+++ b/glcpp.h
@@ -52,6 +52,10 @@ glcpp_parser_parse (glcpp_parser_t *parser);
void
glcpp_parser_destroy (glcpp_parser_t *parser);
+int
+glcpp_parser_macro_defined (glcpp_parser_t *parser,
+ const char *identifier);
+
/* Generated by glcpp-lex.l to glcpp-lex.c */
int