aboutsummaryrefslogtreecommitdiffstats
path: root/awk.h
diff options
context:
space:
mode:
Diffstat (limited to 'awk.h')
-rw-r--r--awk.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/awk.h b/awk.h
index 993e5820..8a5c6eb8 100644
--- a/awk.h
+++ b/awk.h
@@ -1323,8 +1323,12 @@ extern const wchar_t *wstrstr(const wchar_t *haystack, size_t hs_len,
extern const wchar_t *wcasestrstr(const wchar_t *haystack, size_t hs_len,
const wchar_t *needle, size_t needle_len);
extern void free_wstr(NODE *n);
+extern wint_t btowc_cache[];
+extern void init_btowc_cache();
+#define is_valid_character(b) (btowc_cache[b] != WEOF)
#else
#define free_wstr(NODE) /* empty */
+#define is_valid_character(c) (TRUE)
#endif
/* re.c */
extern Regexp *make_regexp(const char *s, size_t len, int ignorecase, int dfa, int canfatal);