* cplus-dem.c (cplus_demangle_opname): Changed to use islower.

From-SVN: r33189
This commit is contained in:
Dave Pitts 2000-04-17 00:51:19 +00:00 committed by Richard Henderson
parent c94c981720
commit 498e1ab148
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2000-04-16 Dave Pitts <dpitts@cozx.com>
* cplus-dem.c (cplus_demangle_opname): Changed to use islower.
2000-04-05 Richard Henderson <rth@cygnus.com>
* splay-tree.c (splay_tree_remove): New.

View file

@ -636,8 +636,8 @@ cplus_demangle_opname (opname, result, options)
}
}
else if (opname[0] == '_' && opname[1] == '_'
&& opname[2] >= 'a' && opname[2] <= 'z'
&& opname[3] >= 'a' && opname[3] <= 'z')
&& islower(opname[2])
&& islower(opname[3]))
{
if (opname[4] == '\0')
{
@ -4188,8 +4188,8 @@ demangle_function_name (work, mangled, declp, scan)
}
}
else if (declp->b[0] == '_' && declp->b[1] == '_'
&& declp->b[2] >= 'a' && declp->b[2] <= 'z'
&& declp->b[3] >= 'a' && declp->b[3] <= 'z')
&& islower(declp->b[2])
&& islower(declp->b[3]))
{
if (declp->b[4] == '\0')
{