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 |
---|---|---|
.. | ||
config | Loading commit data... | |
testsuite | Loading commit data... | |
COPYING.LIB | Loading commit data... | |
ChangeLog | Loading commit data... | |
Makefile.in | Loading commit data... | |
README | Loading commit data... | |
aclocal.m4 | Loading commit data... | |
alloca-conf.h | Loading commit data... | |
alloca.c | Loading commit data... | |
argv.c | Loading commit data... | |
asprintf.c | Loading commit data... | |
atexit.c | Loading commit data... | |
basename.c | Loading commit data... | |
bcmp.c | Loading commit data... | |
bcopy.c | Loading commit data... | |
bzero.c | Loading commit data... | |
calloc.c | Loading commit data... | |
choose-temp.c | Loading commit data... | |
clock.c | Loading commit data... | |
concat.c | Loading commit data... | |
config.h-vms | Loading commit data... | |
config.in | Loading commit data... | |
config.table | Loading commit data... | |
configure | Loading commit data... | |
configure.in | Loading commit data... | |
copysign.c | Loading commit data... | |
cp-demangle.c | Loading commit data... | |
cplus-dem.c | Loading commit data... | |
dyn-string.c | Loading commit data... | |
fdmatch.c | Loading commit data... | |
floatformat.c | Loading commit data... | |
fnmatch.c | Loading commit data... | |
getcwd.c | Loading commit data... | |
getopt.c | Loading commit data... | |
getopt1.c | Loading commit data... | |
getpagesize.c | Loading commit data... | |
getpwd.c | Loading commit data... | |
getruntime.c | Loading commit data... | |
hashtab.c | Loading commit data... | |
hex.c | Loading commit data... | |
index.c | Loading commit data... | |
insque.c | Loading commit data... | |
makefile.vms | Loading commit data... | |
md5.c | Loading commit data... | |
memchr.c | Loading commit data... | |
memcmp.c | Loading commit data... | |
memcpy.c | Loading commit data... | |
memmove.c | Loading commit data... | |
memset.c | Loading commit data... | |
mkstemps.c | Loading commit data... | |
mpw-config.in | Loading commit data... | |
mpw-make.sed | Loading commit data... | |
mpw.c | Loading commit data... | |
msdos.c | Loading commit data... | |
objalloc.c | Loading commit data... | |
obstack.c | Loading commit data... | |
partition.c | Loading commit data... | |
pexecute.c | Loading commit data... | |
putenv.c | Loading commit data... | |
random.c | Loading commit data... | |
rename.c | Loading commit data... | |
rindex.c | Loading commit data... | |
safe-ctype.c | Loading commit data... | |
setenv.c | Loading commit data... | |
sigsetmask.c | Loading commit data... | |
sort.c | Loading commit data... | |
spaces.c | Loading commit data... | |
splay-tree.c | Loading commit data... | |
strcasecmp.c | Loading commit data... | |
strchr.c | Loading commit data... | |
strdup.c | Loading commit data... | |
strerror.c | Loading commit data... | |
strncasecmp.c | Loading commit data... | |
strncmp.c | Loading commit data... | |
strrchr.c | Loading commit data... | |
strsignal.c | Loading commit data... | |
strstr.c | Loading commit data... | |
strtod.c | Loading commit data... | |
strtol.c | Loading commit data... | |
strtoul.c | Loading commit data... | |
tmpnam.c | Loading commit data... | |
vasprintf.c | Loading commit data... | |
vfork.c | Loading commit data... | |
vfprintf.c | Loading commit data... | |
vmsbuild.com | Loading commit data... | |
vprintf.c | Loading commit data... | |
vsprintf.c | Loading commit data... | |
waitpid.c | Loading commit data... | |
xatexit.c | Loading commit data... | |
xexit.c | Loading commit data... | |
xmalloc.c | Loading commit data... | |
xmemdup.c | Loading commit data... | |
xstrdup.c | Loading commit data... | |
xstrerror.c | Loading commit data... |