diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2000-05-04 18:21:03 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2000-05-04 18:21:03 +0000 |
commit | a85a47fbf4b840d436aee5e96247b131ed99f211 (patch) | |
tree | 4c099d9348362f08f476c39a3e22f3d990be6ba1 /libiberty/cplus-dem.c | |
parent | 1cea04347c2140f56f748438e0506db612856db9 (diff) | |
download | gcc-a85a47fbf4b840d436aee5e96247b131ed99f211.zip gcc-a85a47fbf4b840d436aee5e96247b131ed99f211.tar.gz gcc-a85a47fbf4b840d436aee5e96247b131ed99f211.tar.bz2 |
demangle.h (demangler_engine): Constify.
include:
* demangle.h (demangler_engine): Constify.
libiberty:
* cplus-dem.c (cplus_demangle_opname, demangle_function_name):
Cast the arguments to `islower' to `unsigned char'.
(print_demangler_list): Prototype.
From-SVN: r33679
Diffstat (limited to 'libiberty/cplus-dem.c')
-rw-r--r-- | libiberty/cplus-dem.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index 4ea2c95..9ccce64 100644 --- a/libiberty/cplus-dem.c +++ b/libiberty/cplus-dem.c @@ -679,8 +679,8 @@ cplus_demangle_opname (opname, result, options) } } else if (opname[0] == '_' && opname[1] == '_' - && islower(opname[2]) - && islower(opname[3])) + && islower((unsigned char)opname[2]) + && islower((unsigned char)opname[3])) { if (opname[4] == '\0') { @@ -4266,8 +4266,8 @@ demangle_function_name (work, mangled, declp, scan) } } else if (declp->b[0] == '_' && declp->b[1] == '_' - && islower(declp->b[2]) - && islower(declp->b[3])) + && islower((unsigned char)declp->b[2]) + && islower((unsigned char)declp->b[3])) { if (declp->b[4] == '\0') { @@ -4480,6 +4480,7 @@ static int flags = DMGL_PARAMS | DMGL_ANSI; static void demangle_it PARAMS ((char *)); static void usage PARAMS ((FILE *, int)) ATTRIBUTE_NORETURN; static void fatal PARAMS ((const char *)) ATTRIBUTE_NORETURN; +static void print_demangler_list PARAMS ((FILE *)); static void demangle_it (mangled_name) |