# HG changeset patch # User Stefan Monnier # Date 1128400268 0 # Node ID 251409bdae6a6413b5c5c17b66c7e7140f9be28a # Parent 95baa5a5fb958bd3ef58c0ee16927d369cb15b2c (re_char): Move it back to the implementation file. (re_set_whitespace_regexp): Change the arg's type to not use it. diff -r 95baa5a5fb95 -r 251409bdae6a src/regex.c --- a/src/regex.c Tue Oct 04 04:23:12 2005 +0000 +++ b/src/regex.c Tue Oct 04 04:31:08 2005 +0000 @@ -524,6 +524,9 @@ #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 @@ 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)