From 6470ea05f949a6363561e8ac934e7b7a66498825 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 4 Oct 2005 04:31:08 +0000 Subject: [PATCH] (re_char): Move it back to the implementation file. (re_set_whitespace_regexp): Change the arg's type to not use it. --- src/regex.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/regex.c b/src/regex.c index c765f4bd16b..4f2683adfb9 100644 --- a/src/regex.c +++ b/src/regex.c @@ -524,6 +524,9 @@ init_syntax_once () #define MAX(a, b) ((a) > (b) ? (a) : (b)) #define MIN(a, b) ((a) < (b) ? (a) : (b)) +/* Type of source-pattern and string chars. */ +typedef const unsigned char re_char; + typedef char boolean; #define false 0 #define true 1 @@ -1262,9 +1265,9 @@ static re_char *whitespace_regexp; void re_set_whitespace_regexp (regexp) - re_char *regexp; + const char *regexp; { - whitespace_regexp = regexp; + whitespace_regexp = (re_char *) regexp; } WEAK_ALIAS (__re_set_syntax, re_set_syntax) -- 2.39.5