diff options
Diffstat (limited to 'helpers')
-rw-r--r-- | helpers/ChangeLog | 8 | ||||
-rw-r--r-- | helpers/testdfa.c | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/helpers/ChangeLog b/helpers/ChangeLog index 4188c17d..3215d159 100644 --- a/helpers/ChangeLog +++ b/helpers/ChangeLog @@ -1,3 +1,11 @@ +2015-08-28 Daniel Richard G. <skunk@iSKUNK.ORG> + + * testdfa.c: Define and use the USE_EBCDIC cpp symbol + instead of checking the value of 'a' whenever we want to know + if we're on an EBCDIC system. Also, don't assume that z/OS + necessarily means EBCDIC, as the compiler does have an ASCII + mode (-qascii). + 2015-05-27 Arnold D. Robbins <arnold@skeeve.com> * mb_cur_max.c, timeformat.c: New files. diff --git a/helpers/testdfa.c b/helpers/testdfa.c index 25a229a2..1e144bd7 100644 --- a/helpers/testdfa.c +++ b/helpers/testdfa.c @@ -668,7 +668,7 @@ char casetable[] = { C('\360'), C('\361'), C('\362'), C('\363'), C('\364'), C('\365'), C('\366'), C('\367'), C('\370'), C('\371'), C('\372'), C('\373'), C('\374'), C('\375'), C('\376'), C('\377'), }; -#elif 'a' == 0x81 /* it's EBCDIC */ +#elif defined(USE_EBCDIC) char casetable[] = { /*00 NU SH SX EX PF HT LC DL */ 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, |