summaryrefslogtreecommitdiff
path: root/glcpp.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-10 16:16:06 -0700
committerCarl Worth <cworth@cworth.org>2010-05-10 16:16:06 -0700
commit0b27b5f05191f07ed31e65ff07e5233672f3c33a (patch)
tree84c63c12942e748378d73ef734021f788f4cd569 /glcpp.c
parent725c17a9266c1141508da623c8781412853b70e4 (diff)
Implment #define
By using the recently-imported hash_table implementation.
Diffstat (limited to 'glcpp.c')
-rw-r--r--glcpp.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/glcpp.c b/glcpp.c
index eefac74be9..d6c89df2f9 100644
--- a/glcpp.c
+++ b/glcpp.c
@@ -26,12 +26,14 @@
int
main (void)
{
+ glcpp_parser_t parser;
int ret;
- void *scanner;
- yylex_init (&scanner);
- ret = yyparse (scanner);
- yylex_destroy (scanner);
+ glcpp_parser_init (&parser);
+
+ ret = glcpp_parser_parse (&parser);
+
+ glcpp_parser_fini (&parser);
return ret;
}