include: * safe-ctype.h: New file. libiberty: * safe-ctype.c: New file. * Makefile.in (CFILES): Add safe-ctype.c. (REQUIRED_OFILES): Add safe-ctype.o. * argv.c: Define ISBLANK and use it, not isspace. * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c, strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c) before calling TOLOWER(c)/TOUPPER(c). gcc: * Makefile.in (HOST_RTL): Add safe-ctype.o. (safe-ctype.o): New rule. * system.h: Include safe-ctype.h, not ctype.h. No need to wrap ctype macros. * cpphash.h: Zap IStable and related macros. Define is_* in terms of safe-ctype.h macros. * cppinit.c: Delete the IStable and all related code. * tradcpp.c: Delete is_idchar, is_idstart, is_hor_space, and is_space arrays. Delete initialize_char_syntax. Change all references to the above arrays to use macros instead. * tradcpp.h: Define is_idchar, is_idstart, is_space, and is_nvspace in terms of safe_ctype.h's macros. * tradcif.y: is_idchar, is_idstart are macros not arrays. * config/i370/i370.c, config/winnt/dirent.c, config/winnt/fixinc-nt.c, config/winnt/ld.c: Use uppercase ctype macros. If we included ctype.h, include safe-ctype.h instead. * fixinc/fixfixes.c: Use uppercase ctype macros. Don't test ISLOWER(c) before calling TOUPPER(c). * fixinc/fixincl.c (extract_quoted_files): Simplify out some gunk. * fixinc/gnu-regex.c: Include safe-ctype.h, not ctype.h. No need to wrap ctype macros. Don't test ISUPPER(x) before calling TOLOWER(x). gcc/ch: * lex.c: Don't bother checking whether ISUPPER(c) before calling TOLOWER(c). Don't bother checking whether isascii(c) before testing ISSPACE(c); ISSPACE(c) includes '\n'. gcc/f: * Make-lang.in: Link f/fini with safe-ctype.o. * bad.c: Don't test ISUPPER(c) || ISLOWER(c) before calling TOUPPER(c). * com.c: Use TOUPPER, not ffesrc_toupper. * fini.c: Don't test ISALPHA(c) before calling TOUPPER(c)/TOLOWER(c). * intrin.c: Don't test IN_CTYPE_DOMAIN(c). * src.c: Delete ffesrc_toupper_ and ffesrc_tolower_ and their initializing code; use TOUPPER and TOLOWER instead of ffesrc_toupper and ffesrc_tolower. * src.h: Don't declare ffesrc_toupper_ or ffesrc_tolower_. Don't define ffesrc_toupper or ffesrc_tolower. gcc/java: * jvgenmain.c: Use ISPRINT not isascii. From-SVN: r38124
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
BUGS | Loading commit data... | |
ChangeLog | Loading commit data... | |
ChangeLog.0 | Loading commit data... | |
Make-lang.in | Loading commit data... | |
NEWS | Loading commit data... | |
README | Loading commit data... | |
RELEASE-PREP | Loading commit data... | |
ansify.c | Loading commit data... | |
bad.c | Loading commit data... | |
bad.def | Loading commit data... | |
bad.h | Loading commit data... | |
bit.c | Loading commit data... | |
bit.h | Loading commit data... | |
bld-op.def | Loading commit data... | |
bld.c | Loading commit data... | |
bld.h | Loading commit data... | |
bugs.texi | Loading commit data... | |
bugs0.texi | Loading commit data... | |
com-rt.def | Loading commit data... | |
com.c | Loading commit data... | |
com.h | Loading commit data... | |
config-lang.in | Loading commit data... | |
data.c | Loading commit data... | |
data.h | Loading commit data... | |
equiv.c | Loading commit data... | |
equiv.h | Loading commit data... | |
expr.c | Loading commit data... | |
expr.h | Loading commit data... | |
ffe.texi | Loading commit data... | |
fini.c | Loading commit data... | |
g77.1 | Loading commit data... | |
g77.texi | Loading commit data... | |
g77install.texi | Loading commit data... | |
g77spec.c | Loading commit data... | |
global.c | Loading commit data... | |
global.h | Loading commit data... | |
implic.c | Loading commit data... | |
implic.h | Loading commit data... | |
info-b.def | Loading commit data... | |
info-k.def | Loading commit data... | |
info-w.def | Loading commit data... | |
info.c | Loading commit data... | |
info.h | Loading commit data... | |
intdoc.c | Loading commit data... | |
intdoc.in | Loading commit data... | |
intdoc.texi | Loading commit data... | |
intrin.c | Loading commit data... | |
intrin.def | Loading commit data... | |
intrin.h | Loading commit data... | |
lab.c | Loading commit data... | |
lab.h | Loading commit data... | |
lang-options.h | Loading commit data... | |
lang-specs.h | Loading commit data... | |
lex.c | Loading commit data... | |
lex.h | Loading commit data... | |
malloc.c | Loading commit data... | |
malloc.h | Loading commit data... | |
name.c | Loading commit data... | |
name.h | Loading commit data... | |
news.texi | Loading commit data... | |
news0.texi | Loading commit data... | |
parse.c | Loading commit data... | |
proj.c | Loading commit data... | |
proj.h | Loading commit data... | |
root.texi | Loading commit data... | |
src.c | Loading commit data... | |
src.h | Loading commit data... | |
st.c | Loading commit data... | |
st.h | Loading commit data... | |
sta.c | Loading commit data... | |
sta.h | Loading commit data... | |
stb.c | Loading commit data... | |
stb.h | Loading commit data... | |
stc.c | Loading commit data... | |
stc.h | Loading commit data... | |
std.c | Loading commit data... | |
std.h | Loading commit data... | |
ste.c | Loading commit data... | |
ste.h | Loading commit data... | |
storag.c | Loading commit data... | |
storag.h | Loading commit data... | |
stp.c | Loading commit data... | |
stp.h | Loading commit data... | |
str-1t.fin | Loading commit data... | |
str-2t.fin | Loading commit data... | |
str-fo.fin | Loading commit data... | |
str-io.fin | Loading commit data... | |
str-nq.fin | Loading commit data... | |
str-op.fin | Loading commit data... | |
str-ot.fin | Loading commit data... | |
str.c | Loading commit data... | |
str.h | Loading commit data... | |
sts.c | Loading commit data... | |
sts.h | Loading commit data... | |
stt.c | Loading commit data... | |
stt.h | Loading commit data... | |
stu.c | Loading commit data... | |
stu.h | Loading commit data... | |
stv.c | Loading commit data... | |
stv.h | Loading commit data... | |
stw.c | Loading commit data... | |
stw.h | Loading commit data... | |
symbol.c | Loading commit data... | |
symbol.def | Loading commit data... | |
symbol.h | Loading commit data... | |
target.c | Loading commit data... | |
target.h | Loading commit data... | |
top.c | Loading commit data... | |
top.h | Loading commit data... | |
type.c | Loading commit data... | |
type.h | Loading commit data... | |
version.c | Loading commit data... | |
version.h | Loading commit data... | |
where.c | Loading commit data... | |
where.h | Loading commit data... |