commit | 0b27b5f05191f07ed31e65ff07e5233672f3c33a | [log] [tgz] |
---|---|---|
author | Carl Worth <cworth@cworth.org> | Mon May 10 16:16:06 2010 -0700 |
committer | Carl Worth <cworth@cworth.org> | Mon May 10 16:16:06 2010 -0700 |
tree | 84c63c12942e748378d73ef734021f788f4cd569 | |
parent | 725c17a9266c1141508da623c8781412853b70e4 [diff] [blame] |
Implment #define By using the recently-imported hash_table implementation.
diff --git a/glcpp.c b/glcpp.c index eefac74..d6c89df 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; }