# HG changeset patch # User Richard Stallman # Date 814063814 0 # Node ID fc733d749dd0c4592a6c5505ed45da41cd93430c # Parent 62aa0b766a11a7956eb1ed81d54d720f63f7b03d (RE_TRANSLATE_TYPE): Define, if not already defined. (struct re_pattern_buffer): Use RE_TRANSLATE_TYPE. diff --git a/regex.h b/regex.h --- a/regex.h +++ b/regex.h @@ -279,6 +279,10 @@ 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 @@ 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;