aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2003-04-20 07:29:23 +0000
committerNeil Booth <neil@gcc.gnu.org>2003-04-20 07:29:23 +0000
commit1613e52bdd61cfd2e00fb326c5cfef8e07f8c797 (patch)
tree01f484dfa9250821cfb9113a0a797ca2bec80e59 /gcc/cpphash.h
parent0a45ec5c78e634e129fe3e9bbcddf6b721a10ca8 (diff)
downloadgcc-1613e52bdd61cfd2e00fb326c5cfef8e07f8c797.zip
gcc-1613e52bdd61cfd2e00fb326c5cfef8e07f8c797.tar.gz
gcc-1613e52bdd61cfd2e00fb326c5cfef8e07f8c797.tar.bz2
Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
* 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. From-SVN: r65845
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 f1ee4a6..4eee942 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))