summaryrefslogtreecommitdiff
path: root/src/regex.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex.h')
-rw-r--r--src/regex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/regex.h b/src/regex.h
index 351ec7f4d97..24c568f1c93 100644
--- a/src/regex.h
+++ b/src/regex.h
@@ -289,6 +289,7 @@ typedef enum
#ifndef RE_TRANSLATE_TYPE
#define RE_TRANSLATE_TYPE char *
+#define RE_TRANSLATE(TBL, C) ((TBL)[C])
#endif
struct re_pattern_buffer