Get rid of the ad hoc handling of token_buffer in the scanner: use

the obstacks.
* src/lex.c (token_obstack): New.
(init_lex): Initialize it.  No longer call...
(grow_token_buffer): this.  Remove it.
Adjust all the places which used it to use the obstack.
This commit is contained in:
Akim Demaille
2001-01-19 18:26:32 +00:00
parent 511e79b3d4
commit f17bcd1f66
3 changed files with 99 additions and 118 deletions

View File

@@ -1,3 +1,13 @@
2001-01-19 Akim Demaille <akim@epita.fr>
Get rid of the ad hoc handling of token_buffer in the scanner: use
the obstacks.
* src/lex.c (token_obstack): New.
(init_lex): Initialize it. No longer call...
(grow_token_buffer): this. Remove it.
Adjust all the places which used it to use the obstack.
2001-01-19 Akim Demaille <akim@epita.fr>
* src/lex.h: Rename all the tokens: