aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regex.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/regex.h b/src/regex.h
index 31eaf849f75..5184e6bb714 100644
--- a/src/regex.h
+++ b/src/regex.h
@@ -279,6 +279,10 @@ typedef enum
279 compiled, the `re_nsub' field is available. All other fields are 279 compiled, the `re_nsub' field is available. All other fields are
280 private to the regex routines. */ 280 private to the regex routines. */
281 281
282#ifndef RE_TRANSLATE_TYPE
283#define RE_TRANSLATE_TYPE char *
284#endif
285
282struct re_pattern_buffer 286struct re_pattern_buffer
283{ 287{
284/* [[[begin pattern_buffer]]] */ 288/* [[[begin pattern_buffer]]] */
@@ -305,7 +309,7 @@ struct re_pattern_buffer
305 comparing them, or zero for no translation. The translation 309 comparing them, or zero for no translation. The translation
306 is applied to a pattern when it is compiled and to a string 310 is applied to a pattern when it is compiled and to a string
307 when it is matched. */ 311 when it is matched. */
308 char *translate; 312 RE_TRANSLATE_TYPE translate;
309 313
310 /* Number of subexpressions found by the compiler. */ 314 /* Number of subexpressions found by the compiler. */
311 size_t re_nsub; 315 size_t re_nsub;