diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2002-04-21 18:46:42 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2002-04-21 18:46:42 +0000 |
commit | 562a5c27c266280971055d4066ce9cba9403158b (patch) | |
tree | 3ea24655d8eabfdaf624b6cb32ed7b761c98617f /gcc/cpphash.h | |
parent | 9ac3b1bec7b58c6ad4a76782b1116dfb5f4cd0c6 (diff) | |
download | gcc-562a5c27c266280971055d4066ce9cba9403158b.zip gcc-562a5c27c266280971055d4066ce9cba9403158b.tar.gz gcc-562a5c27c266280971055d4066ce9cba9403158b.tar.bz2 |
cppexp.c (struct op, [...]): Replace U_CHAR with uchar.
* cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
* cppfiles.c (read_include_file): Similarly.
* cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
uxstrdup ustrchr, ufputs): Similarly.
* cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
* cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
cpp_ideq, parse_identifier, parse_number): Similarly.
* cpplib.c (struct directive, dequote_string, D, run_directive,
cpp_push_buffer): Similarly.
* cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
_cpp_create_definition, check_trad_stringification,
cpp_macro_definition): Similarly.
From-SVN: r52587
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r-- | gcc/cpphash.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h index 11483b0..e101bb3 100644 --- a/gcc/cpphash.h +++ b/gcc/cpphash.h @@ -411,7 +411,7 @@ extern void _cpp_do_file_change PARAMS ((cpp_reader *, enum lc_reason, extern void _cpp_pop_buffer PARAMS ((cpp_reader *)); /* Utility routines and macros. */ -#define DSC(str) (const U_CHAR *)str, sizeof str - 1 +#define DSC(str) (const uchar *)str, sizeof str - 1 #define xnew(T) (T *) xmalloc (sizeof(T)) #define xcnew(T) (T *) xcalloc (1, sizeof(T)) #define xnewvec(T, N) (T *) xmalloc (sizeof(T) * (N)) @@ -420,27 +420,27 @@ extern void _cpp_pop_buffer PARAMS ((cpp_reader *)); /* These are inline functions instead of macros so we can get type checking. */ -typedef unsigned char U_CHAR; -#define U (const U_CHAR *) /* Intended use: U"string" */ +typedef unsigned char uchar; +#define U (const uchar *) /* Intended use: U"string" */ -static inline int ustrcmp PARAMS ((const U_CHAR *, const U_CHAR *)); -static inline int ustrncmp PARAMS ((const U_CHAR *, const U_CHAR *, +static inline int ustrcmp PARAMS ((const uchar *, const uchar *)); +static inline int ustrncmp PARAMS ((const uchar *, const uchar *, size_t)); -static inline size_t ustrlen PARAMS ((const U_CHAR *)); -static inline U_CHAR *uxstrdup PARAMS ((const U_CHAR *)); -static inline U_CHAR *ustrchr PARAMS ((const U_CHAR *, int)); -static inline int ufputs PARAMS ((const U_CHAR *, FILE *)); +static inline size_t ustrlen PARAMS ((const uchar *)); +static inline uchar *uxstrdup PARAMS ((const uchar *)); +static inline uchar *ustrchr PARAMS ((const uchar *, int)); +static inline int ufputs PARAMS ((const uchar *, FILE *)); static inline int ustrcmp (s1, s2) - const U_CHAR *s1, *s2; + const uchar *s1, *s2; { return strcmp ((const char *)s1, (const char *)s2); } static inline int ustrncmp (s1, s2, n) - const U_CHAR *s1, *s2; + const uchar *s1, *s2; size_t n; { return strncmp ((const char *)s1, (const char *)s2, n); @@ -448,29 +448,29 @@ ustrncmp (s1, s2, n) static inline size_t ustrlen (s1) - const U_CHAR *s1; + const uchar *s1; { return strlen ((const char *)s1); } -static inline U_CHAR * +static inline uchar * uxstrdup (s1) - const U_CHAR *s1; + const uchar *s1; { - return (U_CHAR *) xstrdup ((const char *)s1); + return (uchar *) xstrdup ((const char *)s1); } -static inline U_CHAR * +static inline uchar * ustrchr (s1, c) - const U_CHAR *s1; + const uchar *s1; int c; { - return (U_CHAR *) strchr ((const char *)s1, c); + return (uchar *) strchr ((const char *)s1, c); } static inline int ufputs (s, f) - const U_CHAR *s; + const uchar *s; FILE *f; { return fputs ((const char *)s, f); |