mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 06:43:03 +00:00
* src/system.h: Include `xalloc.h'.
Remove it from the C files. * src/files.c (output_files): Free the obstacks. * src/lex.c (init_lex): Rename as... (lex_init): this. (lex_free): New. * src/main.c (main): Use it.
This commit is contained in:
10
src/lex.c
10
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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user