summaryrefslogtreecommitdiff
path: root/src/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lex.c')
-rw-r--r--src/lex.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/lex.c b/src/lex.c
index ecb6507e..6c66caac 100644
--- 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)
{