summaryrefslogtreecommitdiff
path: root/libcpp/internal.h
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-02 18:54:41 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-02 18:54:41 +0000
commit880e4baa6b4beeaa504cd8dfadf50594e22b3d69 (patch)
tree2aac293a422c002719640bf2767fde8c557ab77b /libcpp/internal.h
parent35267be7a9367176c88de597bd842ea94e695568 (diff)
downloadgcc-880e4baa6b4beeaa504cd8dfadf50594e22b3d69.tar.gz
/libcpp
2015-07-02 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53690 * charset.c (_cpp_valid_ucn): Add cppchar_t * parameter and change return type to bool. Fix encoding of \u0000 and \U00000000 in C++. (convert_ucn): Adjust call. * lex.c (forms_identifier_p): Likewise. * internal.h (_cpp_valid_ucn): Adjust declaration. /gcc/testsuite 2015-07-02 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53690 * g++.dg/cpp/pr53690.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225353 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/internal.h')
-rw-r--r--libcpp/internal.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libcpp/internal.h b/libcpp/internal.h
index 95cf9c2bfd0..abd464ff422 100644
--- a/libcpp/internal.h
+++ b/libcpp/internal.h
@@ -744,9 +744,10 @@ struct normalize_state
#define NORMALIZE_STATE_UPDATE_IDNUM(st, c) \
((st)->previous = (c), (st)->prev_class = 0)
-extern cppchar_t _cpp_valid_ucn (cpp_reader *, const unsigned char **,
- const unsigned char *, int,
- struct normalize_state *state);
+extern bool _cpp_valid_ucn (cpp_reader *, const unsigned char **,
+ const unsigned char *, int,
+ struct normalize_state *state,
+ cppchar_t *);
extern void _cpp_destroy_iconv (cpp_reader *);
extern unsigned char *_cpp_convert_input (cpp_reader *, const char *,
unsigned char *, size_t, size_t,