OSDN Git Service

Index: libcpp/ChangeLog
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Mar 2005 10:44:06 +0000 (10:44 +0000)
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Mar 2005 10:44:06 +0000 (10:44 +0000)
commitbb1fa6bb7346b75421ab702f475f3a711a02f822
tree96b619db02d90b96e5dc09601db8bd7a58e95367
parent1a6a3e92b3ef88587fc1da44fea2d50b817e5440
Index: libcpp/ChangeLog
2005-03-12  Geoffrey Keating  <geoffk@apple.com>

* directives.c (glue_header_name): Update call to cpp_spell_token.
* internal.h (_cpp_interpret_identifier): New.
* charset.c (_cpp_interpret_identifier): New.
(_cpp_valid_ucn): Allow UCN version of '$'.
* lex.c (lex_identifier): Add extra parameter to indicate if initial
character was '$' or '\'.  Support identifiers with UCNs.
(forms_identifier_p): Allow UCNs.
(_cpp_lex_direct): Pass extra parameter to lex_identifier.
(utf8_to_ucn): New.
(cpp_spell_token): Add FORSTRING parameter.  Use it.
(cpp_token_as_text): Update call to cpp_spell_token.
(cpp_output_token): Write UCNs back out.
(stringify_arg): Update call to cpp_spell_token.
(paste_tokens): Likewise.
(cpp_macro_definition): Likewise.
* macro.c (stringify_arg): Likewise.
(paste_tokens): Likewise.
(cpp_macro_definition): Likewise.
* include/cpplib.h: Add parameter to cpp_spell_token.

Index: gcc/ChangeLog
2005-03-12  Geoffrey Keating  <geoffk@apple.com>

* c-lex.c (c_lex_with_flags): Add parameter to call to
cpp_spell_token.

Index: gcc/testsuite/ChangeLog
2005-03-12  Geoffrey Keating  <geoffk@apple.com>

* gcc.dg/ucnid-1.c: New.
* gcc.dg/ucnid-2.c: New.
* gcc.dg/ucnid-3.c: New.
* gcc.dg/ucnid-4.c: New.
* gcc.dg/ucnid-5.c: New.
* gcc.dg/ucnid-6.c: New.
* gcc.dg/cpp/ucnid-1.c: New.
* gcc.dg/cpp/ucnid-2.c: New.
* gcc.dg/cpp/ucnid-3.c: New.
* g++.dg/other/ucnid-1.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96333 138bc75d-0d04-0410-961f-82ee72b054a4
20 files changed:
gcc/ChangeLog
gcc/c-lex.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/ucnid-1.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/ucnid-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/ucnid-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/ucnid-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ucnid-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ucnid-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ucnid-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ucnid-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ucnid-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/ucnid-6.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/charset.c
libcpp/directives.c
libcpp/include/cpplib.h
libcpp/internal.h
libcpp/lex.c
libcpp/macro.c