diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2015-10-04 11:05:13 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2015-10-04 11:05:13 +0300 |
commit | 8111eca142100dd5a9e9fc11a29e750b0ccbe31a (patch) | |
tree | 31b600703dc306cc095359fc900ebb78691a0fbe /helpers | |
parent | 6d5c1e1d38f71fdfc1794b5b3723a6e476ffddf4 (diff) | |
parent | 97c4e427ab48d4e45889ca74abb0701a049d7606 (diff) | |
download | egawk-8111eca142100dd5a9e9fc11a29e750b0ccbe31a.tar.gz egawk-8111eca142100dd5a9e9fc11a29e750b0ccbe31a.tar.bz2 egawk-8111eca142100dd5a9e9fc11a29e750b0ccbe31a.zip |
Merge branch 'feature/zOS-try2' into gawk-4.1-stable
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, |