changeset 20191:3b35a295b28b

(RE_TRANSLATE_TYPE): Define, if not already defined. (struct re_pattern_buffer): Use RE_TRANSLATE_TYPE.
author Richard Stallman <rms@gnu.org>
date Thu, 19 Oct 1995 00:50:14 +0000
parents c3022d5d077c
children cd22f751293c
files regex.h
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/regex.h	Wed Oct 18 15:59:12 1995 +0000
+++ b/regex.h	Thu Oct 19 00:50:14 1995 +0000
@@ -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;