diff options
| author | Richard M. Stallman | 1995-10-19 00:50:14 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-10-19 00:50:14 +0000 |
| commit | 6fffb26e4264d514220adfb8f4b9ccb75c68fd38 (patch) | |
| tree | ae2e840dcfc670f6fc6d7bbf21d96126e6f2c041 /src | |
| parent | 898b9ac102508b56debc10409b2173319abb904e (diff) | |
| download | emacs-6fffb26e4264d514220adfb8f4b9ccb75c68fd38.tar.gz emacs-6fffb26e4264d514220adfb8f4b9ccb75c68fd38.zip | |
(RE_TRANSLATE_TYPE): Define, if not already defined.
(struct re_pattern_buffer): Use RE_TRANSLATE_TYPE.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex.h | 6 |
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 | |||
| 282 | struct re_pattern_buffer | 286 | struct 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; |