From 15269687f6a9bdccd30dd370875bf18416f60dca Mon Sep 17 00:00:00 2001
From: Tavian Barnes <tavianator@gmail.com>
Date: Thu, 28 Jan 2010 22:53:00 -0500
Subject: Don't pollute global namespace with grammar.h.

---
 dimension/tokenize.h | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

(limited to 'dimension')

diff --git a/dimension/tokenize.h b/dimension/tokenize.h
index 18d594b..9ea27ee 100644
--- a/dimension/tokenize.h
+++ b/dimension/tokenize.h
@@ -21,9 +21,18 @@
 #define TOKENIZE_H
 
 #include "../libdimension/dimension.h"
+
+#define yytokentype dmnsn_yytokentype
+#define YYSTYPE
+#define YYLTYPE
+
 #include "grammar.h"
 
-typedef enum yytokentype dmnsn_token_type;
+#undef YYLTYPE
+#undef YYSTYPE
+#undef yytokentype
+
+typedef enum dmnsn_yytokentype dmnsn_token_type;
 
 typedef struct dmnsn_token dmnsn_token;
 
-- 
cgit v1.2.3