aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2003-06-22 15:59:49 +0000
committerZack Weinberg <zack@codesourcery.com>2003-06-22 15:59:49 +0000
commit8c59aef122907060e4d3c8fb1ab9fad7ba07cc15 (patch)
tree9d764c33d79e91dfefad69c180ad544118d58cc5 /include
parent0fdc2b09bf84afca1f7faba72e77952bbd491155 (diff)
include:
* 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: https://gcc.gnu.org/svn/gcc/trunk@68335 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog6
-rw-r--r--include/safe-ctype.h12
2 files changed, 12 insertions, 6 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index 43ce9330659..a76344b3a96 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,9 @@
+2003-06-22 Zack Weinberg <zack@codesourcery.com>
+
+ * safe-ctype.h (HC_UNKNOWN, HC_ASCII, HC_EBCDIC): Rename to
+ HOST_CHARSET_UNKNOWN, HOST_CHARSET_ASCII, HOST_CHARSET_EBCDIC
+ respectively.
+
2003-06-21 Zack Weinberg <zack@codesourcery.com>
* safe-ctype.h (HC_UNKNOWN, HC_ASCII, HC_EBCDIC, HOST_CHARSET):
diff --git a/include/safe-ctype.h b/include/safe-ctype.h
index c3e154c6f9f..69a3f74cc6f 100644
--- a/include/safe-ctype.h
+++ b/include/safe-ctype.h
@@ -40,19 +40,19 @@ Boston, MA 02111-1307, USA. */
#endif
/* Determine host character set. */
-#define HC_UNKNOWN 0
-#define HC_ASCII 1
-#define HC_EBCDIC 2
+#define HOST_CHARSET_UNKNOWN 0
+#define HOST_CHARSET_ASCII 1
+#define HOST_CHARSET_EBCDIC 2
#if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \
&& 'A' == 0x41 && 'a' == 0x61 && '!' == 0x21
-# define HOST_CHARSET HC_ASCII
+# define HOST_CHARSET HOST_CHARSET_ASCII
#else
# if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \
&& 'A' == 0xC1 && 'a' == 0x81 && '!' == 0x5A
-# define HOST_CHARSET HC_EBCDIC
+# define HOST_CHARSET HOST_CHARSET_EBCDIC
# else
-# define HOST_CHARSET HC_UNKNOWN
+# define HOST_CHARSET HOST_CHARSET_UNKNOWN
# endif
#endif