summaryrefslogtreecommitdiff
path: root/glcpp.h
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.h
parent725c17a9266c1141508da623c8781412853b70e4 (diff)
Implment #define
By using the recently-imported hash_table implementation.
Diffstat (limited to 'glcpp.h')
-rw-r--r--glcpp.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/glcpp.h b/glcpp.h
index 485387b8a5..5278e1b971 100644
--- a/glcpp.h
+++ b/glcpp.h
@@ -24,10 +24,27 @@
#ifndef GLCPP_H
#define GLCPP_H
-/* Generated by glcpp-lex.l to glcpp-lex.c */
+#include "hash_table.h"
+#define YYSTYPE char *
#define yyscan_t void*
+typedef struct {
+ yyscan_t scanner;
+ struct hash_table *defines;
+} glcpp_parser_t;
+
+void
+glcpp_parser_init (glcpp_parser_t *parser);
+
+int
+glcpp_parser_parse (glcpp_parser_t *parser);
+
+void
+glcpp_parser_fini (glcpp_parser_t *parser);
+
+/* Generated by glcpp-lex.l to glcpp-lex.c */
+
int
yylex_init (yyscan_t *scanner);
@@ -40,6 +57,6 @@ yylex_destroy (yyscan_t scanner);
/* Generated by glcpp-parse.y to glcpp-parse.c */
int
-yyparse (void *scanner);
+yyparse (glcpp_parser_t *parser);
#endif