summaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-20 07:29:23 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-20 07:29:23 +0000
commit2cbf1359092416d271b02844198e7ad6e5e56284 (patch)
tree01f484dfa9250821cfb9113a0a797ca2bec80e59 /gcc/cpphash.h
parent8d6d7930ebb0b4a3a39a502fdbca5842d1f226a4 (diff)
downloadgcc-2cbf1359092416d271b02844198e7ad6e5e56284.tar.gz
* Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
(cppcharset.o): New target. * c-lex.c (is_extended_char): Move to cppcharset.c. (utf8_extend_token): Delete. * cppcharset.c: New file. * cpphash.h (_cpp_valid_ucn): New. * cpplex.c (lex_identifier): Update prototype. (continues_identifier_p): Rename forms_identifier_p. Handle UCN escapes. (maybe_read_ucs): Rename maybe_read_ucn. Update to use code in cppcharset.c. (lex_number, lex_identifier, cpp_parse_escape): Update. (_cpp_lex_direct): Update to handle UCNs. (cpp_avoid_paste): Don't paste to form a UCN. testsuite: * ucs.c: Update diagnostic messages. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65845 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r--gcc/cpphash.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h
index f1ee4a6eb90..4eee9426a76 100644
--- a/gcc/cpphash.h
+++ b/gcc/cpphash.h
@@ -555,6 +555,10 @@ extern bool _cpp_expansions_different_trad PARAMS ((const cpp_macro *,
extern uchar *_cpp_copy_replacement_text PARAMS ((const cpp_macro *, uchar *));
extern size_t _cpp_replacement_text_len PARAMS ((const cpp_macro *));
+/* In cppcharset.c. */
+cppchar_t _cpp_valid_ucn PARAMS ((cpp_reader *, const uchar **,
+ int identifer_p));
+
/* Utility routines and macros. */
#define DSC(str) (const uchar *)str, sizeof str - 1
#define xnew(T) (T *) xmalloc (sizeof(T))