diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2000-11-19 12:46:33 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2000-11-19 12:46:33 +0000 |
commit | 8bcc782ce9bbb9b4c7e6641d3219ad74820f0220 (patch) | |
tree | ce4a2123bb8615b0091e390026abe7e6b75de82c /libiberty/cplus-dem.c | |
parent | 980c0b564e3cf8ddf5f49319546e398d21517e64 (diff) | |
download | gcc-8bcc782ce9bbb9b4c7e6641d3219ad74820f0220.zip gcc-8bcc782ce9bbb9b4c7e6641d3219ad74820f0220.tar.gz gcc-8bcc782ce9bbb9b4c7e6641d3219ad74820f0220.tar.bz2 |
cplus-dem.c (grow_vect): Prototype.
* cplus-dem.c (grow_vect): Prototype.
(ada_demangle): Cast the arg of ctype macros to unsigned char.
From-SVN: r37563
Diffstat (limited to 'libiberty/cplus-dem.c')
-rw-r--r-- | libiberty/cplus-dem.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index 78d95d0..ea43e7e 100644 --- a/libiberty/cplus-dem.c +++ b/libiberty/cplus-dem.c @@ -527,6 +527,9 @@ static void recursively_demangle PARAMS ((struct work_stuff *, const char **, string *, int)); +static void +grow_vect PARAMS ((void**, size_t*, size_t, int)); + /* Translate count to integer, consuming tokens in the process. Conversion terminates on the first non-digit character. @@ -995,8 +998,8 @@ ada_demangle (mangled, option) sizeof (char)); demangled = demangling_buffer; - if (isdigit (mangled[len0 - 1])) { - for (i = len0-2; i >= 0 && isdigit (mangled[i]); i -= 1) + if (isdigit ((unsigned char)mangled[len0 - 1])) { + for (i = len0-2; i >= 0 && isdigit ((unsigned char)mangled[i]); i -= 1) ; if (i > 1 && mangled[i] == '_' && mangled[i-1] == '_') { @@ -1010,7 +1013,8 @@ ada_demangle (mangled, option) } } - for (i = 0, j = 0; i < len0 && ! isalpha (mangled[i]); i += 1, j += 1) + for (i = 0, j = 0; i < len0 && ! isalpha ((unsigned char)mangled[i]); + i += 1, j += 1) demangled[j] = mangled[i]; at_start_name = 1; @@ -1033,7 +1037,7 @@ ada_demangle (mangled, option) demangled[j] = '\000'; for (i = 0; demangled[i] != '\0'; i += 1) - if (isupper (demangled[i]) || demangled[i] == ' ') + if (isupper ((unsigned char)demangled[i]) || demangled[i] == ' ') goto Suppress; if (! changed) |