mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 14:23:04 +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/system.h
10
src/system.h
@@ -73,7 +73,7 @@ extern int errno;
|
||||
# define PARAMS(p) ()
|
||||
#endif
|
||||
|
||||
|
||||
# include "xalloc.h"
|
||||
|
||||
/*---------------------.
|
||||
| Missing prototypes. |
|
||||
@@ -159,9 +159,9 @@ typedef int bool;
|
||||
| Obstacks. |
|
||||
`-----------*/
|
||||
|
||||
#define obstack_chunk_alloc xmalloc
|
||||
#define obstack_chunk_free free
|
||||
#include "obstack.h"
|
||||
# define obstack_chunk_alloc xmalloc
|
||||
# define obstack_chunk_free free
|
||||
# include "obstack.h"
|
||||
|
||||
#define obstack_sgrow(Obs, Str) \
|
||||
obstack_grow (Obs, Str, strlen (Str))
|
||||
@@ -271,8 +271,6 @@ do { \
|
||||
# if WITH_DMALLOC
|
||||
# define DMALLOC_FUNC_CHECK
|
||||
# include <dmalloc.h>
|
||||
|
||||
# endif /* WITH_DMALLOC */
|
||||
|
||||
|
||||
#endif /* BISON_SYSTEM_H */
|
||||
|
||||
Reference in New Issue
Block a user