changeset 65817:251409bdae6a

(re_char): Move it back to the implementation file. (re_set_whitespace_regexp): Change the arg's type to not use it.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 04 Oct 2005 04:31:08 +0000
parents 95baa5a5fb95
children 3b09bb851f62
files src/regex.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)