X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fregex.h;h=5184e6bb714f31cfaf3e0c30ba0eef049fc21b77;hb=6aae241f16ed2dbe57475cb4c8b3a5b1ca1e9699;hp=31eaf849f757245a2baf6a8266444b1b3c94857c;hpb=b80c3874f57e48b2f44192cc3cc1cc93cef6e8d4;p=gnulib.git diff --git a/lib/regex.h b/lib/regex.h index 31eaf849f..5184e6bb7 100644 --- a/lib/regex.h +++ b/lib/regex.h @@ -279,6 +279,10 @@ typedef enum compiled, the `re_nsub' field is available. All other fields are private to the regex routines. */ +#ifndef RE_TRANSLATE_TYPE +#define RE_TRANSLATE_TYPE char * +#endif + struct re_pattern_buffer { /* [[[begin pattern_buffer]]] */ @@ -305,7 +309,7 @@ struct re_pattern_buffer comparing them, or zero for no translation. The translation is applied to a pattern when it is compiled and to a string when it is matched. */ - char *translate; + RE_TRANSLATE_TYPE translate; /* Number of subexpressions found by the compiler. */ size_t re_nsub;