OSDN Git Service

* cpphash.c (trad_stringify, warn_trad_stringify,
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 14 May 2000 22:42:58 +0000 (22:42 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 14 May 2000 22:42:58 +0000 (22:42 +0000)
commite916a3569e1e28d877426a4038e3b6e0e20ed852
treea0ba4aecb8e93ef8585a5f8c424191f55b6801a5
parent90add96a7bbe9f0930b2734b43fb80c3937e9e31
* cpphash.c (trad_stringify, warn_trad_stringify,
collect_params): Make some pointers pointers to const.
* cpplex.c (auto_expand_name_space) Guaranteed to always
expand by at least one character.
(SPELL_CHAR, SPELL_NONE): Temporarily reverse order.
(struct token_spelling): Use const U_CHAR * rather than PTR.
(expand_name_space): Fix up token pointers if name space
is moved when expanding.
(INIT_NAME, cpp_scan_line, parse_name, parse_number,
parse_string2, save_comment, spell_token, cpp_output_list):
Update so the routines handle tokens with a direct pointer to
their text, rather than an offset into the token's list's namebuf.
(_cpp_lex_line): Rearrange for clarity.

* cpplib.c (_cpp_check_directive): Similarly.
(do_define): Make SYM a pointer to const.
* cpplib.h (struct cpp_name): Replace offset with direct pointer.
(CPP_INT, CPP_FLOAT): Spelling type should be SPELL_IDENT.
(TOK_OFFSET): Delete.
(TOK_NAME): Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33901 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cpphash.c
gcc/cpplex.c
gcc/cpplib.c
gcc/cpplib.h