From 2cbf1359092416d271b02844198e7ad6e5e56284 Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 20 Apr 2003 07:29:23 +0000 Subject: * 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 --- gcc/cpphash.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/cpphash.h') 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)) -- cgit v1.2.1