]> git.saurik.com Git - bison.git/blobdiff - src/lex.c
* src/system.h: Include `xalloc.h'.
[bison.git] / src / lex.c
index ecb6507ea7176675c76bae40985537177bb3e847..6c66caac7cc309ecd409691623f0c71894c95a7a 100644 (file)
--- a/src/lex.c
+++ b/src/lex.c
@@ -24,7 +24,6 @@
 #include "getopt.h"            /* for optarg */
 #include "symtab.h"
 #include "lex.h"
-#include "xalloc.h"
 #include "complain.h"
 #include "gram.h"
 #include "quote.h"
@@ -43,13 +42,20 @@ static bucket *unlexed_symval = NULL;
 
 
 void
-init_lex (void)
+lex_init (void)
 {
   obstack_init (&token_obstack);
   unlexed = tok_undef;
 }
 
 
+void
+lex_free (void)
+{
+  obstack_free (&token_obstack, NULL);
+}
+
+
 int
 skip_white_space (void)
 {