cpphash.c (trad_stringify, [...]): Make some pointers pointers to const.
authorNeil Booth <neilb@earthling.net>
Sun, 14 May 2000 22:42:58 +0000 (22:42 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 14 May 2000 22:42:58 +0000 (22:42 +0000)
commitf617b8e22206f6201c4e7226fcadb92a09aeab66
treea0ba4aecb8e93ef8585a5f8c424191f55b6801a5
parent05ef2698d02b5631c9cb1a4abeaca091ef7d9f9e
cpphash.c (trad_stringify, [...]): Make some pointers pointers to const.

* 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.

From-SVN: r33901
gcc/ChangeLog
gcc/cpphash.c
gcc/cpplex.c
gcc/cpplib.c
gcc/cpplib.h