diff options
author | Nathan Sidwell <nathan@acm.org> | 2018-08-17 12:04:13 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2018-08-17 12:04:13 +0000 |
commit | c5d725c0a8da3b2227d119871e881d8a6e1bf600 (patch) | |
tree | 7350722280ba05e1042b098c9c42984d9569f9a9 /libcpp/internal.h | |
parent | 0138492e7bdbb4949c940a501415b7bbf5ffb9b4 (diff) | |
download | gcc-c5d725c0a8da3b2227d119871e881d8a6e1bf600.zip gcc-c5d725c0a8da3b2227d119871e881d8a6e1bf600.tar.gz gcc-c5d725c0a8da3b2227d119871e881d8a6e1bf600.tar.bz2 |
[PATCH] Move cpp_macro to cpplib.h
https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01016.html
libcpp/
* cpp-id-data.h (uchar, UC): Move to internal.h
(struct cpp_macro): Move to cpplib.h.
* internal.h (uchar, UC): From cpp-id-data.h.
* include/cpplib.h (struct cpp_macro): From cpp-id-data.h.
gcc/c-family/
* c-ada-spec.c: Don't #include "cpp-id-data.h"
* c-cppbuiltin.c: Likewise.
gcc/
* cppbuiltin.c: Include "cpplib.h", not "cpp-id-data.h".
From-SVN: r263618
Diffstat (limited to 'libcpp/internal.h')
-rw-r--r-- | libcpp/internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcpp/internal.h b/libcpp/internal.h index 0012520..0c2395a 100644 --- a/libcpp/internal.h +++ b/libcpp/internal.h @@ -602,6 +602,12 @@ extern const unsigned char _cpp_trigraph_map[UCHAR_MAX + 1]; extern unsigned char _cpp_trigraph_map[UCHAR_MAX + 1]; #endif +#if !defined (HAVE_UCHAR) && !defined (IN_GCC) +typedef unsigned char uchar; +#endif + +#define UC (const uchar *) /* Intended use: UC"string" */ + /* Macros. */ static inline int cpp_in_system_header (cpp_reader *); |