diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-09-28 09:40:22 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-09-28 09:40:22 +0000 |
commit | ece54d544da404f5d0e9c5efd78ff53e9636ce36 (patch) | |
tree | 04de76def0a1a191465d81cb782799aeec34587f /gcc/cppinit.c | |
parent | 0c0d83a1b4414876e77011d606631aafe94a271d (diff) | |
download | gcc-ece54d544da404f5d0e9c5efd78ff53e9636ce36.zip gcc-ece54d544da404f5d0e9c5efd78ff53e9636ce36.tar.gz gcc-ece54d544da404f5d0e9c5efd78ff53e9636ce36.tar.bz2 |
cpphash.h (struct cpp_buff): Make unsigned.
* cpphash.h (struct cpp_buff): Make unsigned.
(_cpp_get_buff): Take length of size_t.
(_cpp_unaligned_alloc): New.
(BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
(struct cpp_reader): Remove ident_pool. Add u_buff.
* cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
(cpp_destroy): Destroy u_buff, not ident_pool.
* cpplex.c (parse_number, parse_string, save_comment,
cpp_token_as_text): Update to use the unaligned buffer.
(new_buff): Make unsigned.
(_cpp_unaligned_alloc): New.
* cpplib.c (glue_header_name): Update to use the unaligned buffer.
* cppmacro.c (new_number_token, builtin_macro, stringify_arg):
Similarly.
(collect_args): Make unsigned.
From-SVN: r45858
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 42decd1..5150a0e 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -527,8 +527,8 @@ cpp_create_reader (table, lang) pfile->base_context.macro = 0; pfile->base_context.prev = pfile->base_context.next = 0; - /* Identifier pool initially 8K. Unaligned, permanent pool. */ - _cpp_init_pool (&pfile->ident_pool, 8 * 1024, 1, 0); + /* Unaligned storage. */ + pfile->u_buff = _cpp_get_buff (pfile, 0); /* Macro pool initially 8K. Aligned, permanent pool. */ _cpp_init_pool (&pfile->macro_pool, 8 * 1024, 0, 0); @@ -585,8 +585,8 @@ cpp_destroy (pfile) _cpp_destroy_hashtable (pfile); _cpp_cleanup_includes (pfile); - _cpp_free_pool (&pfile->ident_pool); _cpp_free_pool (&pfile->macro_pool); + _cpp_free_buff (pfile->u_buff); _cpp_free_buff (pfile->free_buffs); for (run = &pfile->base_run; run; run = runn) |