aboutsummaryrefslogtreecommitdiffstats
path: root/mbsupport.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2011-11-01 22:56:51 +0200
committerArnold D. Robbins <arnold@skeeve.com>2011-11-01 22:56:51 +0200
commit406189e88890a240c50cfd9f33613c4d4fb6d2bf (patch)
treef3828d15871d9c1a2b2401445fedae7435bd5716 /mbsupport.h
parent9926f88fdfe6e489194fb1fe0e5e75774ace04ce (diff)
downloadegawk-406189e88890a240c50cfd9f33613c4d4fb6d2bf.tar.gz
egawk-406189e88890a240c50cfd9f33613c4d4fb6d2bf.tar.bz2
egawk-406189e88890a240c50cfd9f33613c4d4fb6d2bf.zip
Move non-MBS support glop out of dfa.c.
Diffstat (limited to 'mbsupport.h')
-rw-r--r--mbsupport.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/mbsupport.h b/mbsupport.h
index 6008da77..1a30785d 100644
--- a/mbsupport.h
+++ b/mbsupport.h
@@ -67,4 +67,21 @@
#if ! MBS_SUPPORT
# undef MB_CUR_MAX
# define MB_CUR_MAX 1
+
+/* All this glop is for dfa.c. Bleah. */
+
+#define wctype_t int
+#define wint_t int
+#define mbstate_t int
+#define WEOF EOF
+#define towupper toupper
+#define towlower tolower
+#define btowc(x) (x)
+#define iswalnum isalnum
+#define iswalpha isalpha
+#define iswupper isupper
+
+extern wctype_t wctype(const char *name);
+extern int iswctype(wint_t wc, wctype_t desc);
+extern int wcscoll(const wchar_t *ws1, const wchar_t *ws2);
#endif