aboutsummaryrefslogtreecommitdiff
path: root/include/safe-ctype.h
AgeCommit message (Collapse)Author
2008-07-07 * safe-ctype.h: Add #include of ctype.h before redefiningbrobecke
the ctype.h macros. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137580 138bc75d-0d04-0410-961f-82ee72b054a4
2008-07-04 * safe-ctype.h: Remove #error when detecting that ctype.h has beenbrobecke
included. Redefine the various macros provided by ctype.h as undefined variables. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137480 138bc75d-0d04-0410-961f-82ee72b054a4
2005-05-10Update the address and phone number of the FSF organization.nickc
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99518 138bc75d-0d04-0410-961f-82ee72b054a4
2003-06-22include:zack
* safe-ctype.h (HC_UNKNOWN, HC_ASCII, HC_EBCDIC): Rename to HOST_CHARSET_UNKNOWN, HOST_CHARSET_ASCII, HOST_CHARSET_EBCDIC respectively. libiberty: * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC. Add documentation in form expected by gather-docs. * hex.c: Use HOST_CHARSET, not hand-coded check of character set. * Makefile.in, functions.texi: Regenerate. gcc: * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68335 138bc75d-0d04-0410-961f-82ee72b054a4
2003-06-21include:zack
* safe-ctype.h (HC_UNKNOWN, HC_ASCII, HC_EBCDIC, HOST_CHARSET): New #defines. libiberty: * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET for charset determination. gcc: * aclocal.m4 (gcc_AC_C_CHARSET): Delete. * configure.in: Don't use gcc_AC_C_CHARSET. * configure, config.in: Regenerate. * config/i370/i370.c, config/i370/i370.h: Use (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII) instead of HOST_EBCDIC or !HOST_EBCDIC. Clarify comments a tad. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68317 138bc75d-0d04-0410-961f-82ee72b054a4
2001-10-24 * include/safe-ctype.h (_sch_isbasic, IS_ISOBASIC): New.neil
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46470 138bc75d-0d04-0410-961f-82ee72b054a4
2001-03-02 * safe-ctype.h (_sch_test): Cast enum bit to unsigned short int for pccdanglin
compatibility. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40175 138bc75d-0d04-0410-961f-82ee72b054a4
2000-12-16 * safe-ctype.h: Make code work on all targets and not just onrth
targets where a char is 8 bits. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38312 138bc75d-0d04-0410-961f-82ee72b054a4
2000-12-08include:zack
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38124 138bc75d-0d04-0410-961f-82ee72b054a4