aboutsummaryrefslogtreecommitdiffstats
path: root/support/regex_internal.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-11-06 14:17:43 +0200
committerArnold D. Robbins <arnold@skeeve.com>2020-11-06 14:17:43 +0200
commit793fc4309e655d68ba2972fb0e7c4be4346424ea (patch)
tree04f6abe151269fd023d86cd4b85c699068e51099 /support/regex_internal.h
parent22ca86022481cbdfbdc3a2a1f0977735067b2447 (diff)
parent1dbaf410e0b3ec754ee4ab78f861d4ef034e7962 (diff)
downloadegawk-793fc4309e655d68ba2972fb0e7c4be4346424ea.tar.gz
egawk-793fc4309e655d68ba2972fb0e7c4be4346424ea.tar.bz2
egawk-793fc4309e655d68ba2972fb0e7c4be4346424ea.zip
Merge branch 'master' into feature/cmp_scalars
Diffstat (limited to 'support/regex_internal.h')
-rw-r--r--support/regex_internal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/support/regex_internal.h b/support/regex_internal.h
index dbc503cd..4a3cf779 100644
--- a/support/regex_internal.h
+++ b/support/regex_internal.h
@@ -77,6 +77,14 @@
# define isblank(ch) ((ch) == ' ' || (ch) == '\t')
#endif
+/* regex code assumes isascii has its usual numeric meaning,
+ even if the portable character set uses EBCDIC encoding,
+ and even if wint_t is wider than int. */
+#ifndef _LIBC
+# undef isascii
+# define isascii(c) (((c) & ~0x7f) == 0)
+#endif
+
#ifdef _LIBC
# ifndef _RE_DEFINE_LOCALE_FUNCTIONS
# define _RE_DEFINE_LOCALE_FUNCTIONS 1