mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-12 02:22:51 +00:00
Use c-ctype.h (not safe-ctype.h) in gdb
This changes gdb and related programs to use the gnulib c-ctype code rather than safe-ctype.h. The gdb-safe-ctype.h header is removed. This changes common-defs.h to include the c-ctype header, making it available everywhere in gdb. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33217 Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -19,9 +19,7 @@
|
||||
#ifndef GDB_C_SUPPORT_H
|
||||
#define GDB_C_SUPPORT_H
|
||||
|
||||
#include "safe-ctype.h"
|
||||
|
||||
/* Like ISALPHA, but also returns true for the union of all UTF-8
|
||||
/* Like isalpha, but also returns true for the union of all UTF-8
|
||||
multi-byte sequence bytes and non-ASCII characters in
|
||||
extended-ASCII charsets (e.g., Latin1). I.e., returns true if the
|
||||
high bit is set. Note that not all UTF-8 ranges are allowed in C++
|
||||
@@ -32,15 +30,15 @@
|
||||
static inline bool
|
||||
c_ident_is_alpha (unsigned char ch)
|
||||
{
|
||||
return ISALPHA (ch) || ch >= 0x80;
|
||||
return c_isalpha (ch) || ch >= 0x80;
|
||||
}
|
||||
|
||||
/* Similarly, but Like ISALNUM. */
|
||||
/* Similarly, but Like isalnum. */
|
||||
|
||||
static inline bool
|
||||
c_ident_is_alnum (unsigned char ch)
|
||||
{
|
||||
return ISALNUM (ch) || ch >= 0x80;
|
||||
return c_isalnum (ch) || ch >= 0x80;
|
||||
}
|
||||
|
||||
#endif /* GDB_C_SUPPORT_H */
|
||||
|
||||
Reference in New Issue
Block a user