cpphash.h (struct cpp_buff): Make unsigned.
authorNeil Booth <neil@daikokuya.demon.co.uk>
Fri, 28 Sep 2001 09:40:22 +0000 (09:40 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Fri, 28 Sep 2001 09:40:22 +0000 (09:40 +0000)
commitece54d544da404f5d0e9c5efd78ff53e9636ce36
tree04de76def0a1a191465d81cb782799aeec34587f
parent0c0d83a1b4414876e77011d606631aafe94a271d
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
gcc/ChangeLog
gcc/cpphash.h
gcc/cppinit.c
gcc/cpplex.c
gcc/cpplib.c
gcc/cppmacro.c