summaryrefslogtreecommitdiff
path: root/src/regex.h
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-10-19 00:50:14 +0000
committerRichard M. Stallman <rms@gnu.org>1995-10-19 00:50:14 +0000
commit8c8b64f0f90b0ce1fd18dfc4dec4b6f379e8b1fa (patch)
tree03ec4c744c93fae70514c59ac10ffd74386160d0 /src/regex.h
parent2d5db3f7087e9cf6f430d3f85c4f5ea8252f9d83 (diff)
downloademacs-8c8b64f0f90b0ce1fd18dfc4dec4b6f379e8b1fa.tar.gz
(RE_TRANSLATE_TYPE): Define, if not already defined.
(struct re_pattern_buffer): Use RE_TRANSLATE_TYPE.
Diffstat (limited to 'src/regex.h')
-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
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;