diff options
| author | Stefan Monnier | 2005-10-04 04:31:08 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-10-04 04:31:08 +0000 |
| commit | 6470ea05f949a6363561e8ac934e7b7a66498825 (patch) | |
| tree | ded896cd2e6167910b0bec0bf340e2fb6adb1e6a /src | |
| parent | 4156359ea5abc7affe6ed1e93bec8e4b1cd4b977 (diff) | |
| download | emacs-6470ea05f949a6363561e8ac934e7b7a66498825.tar.gz emacs-6470ea05f949a6363561e8ac934e7b7a66498825.zip | |
(re_char): Move it back to the implementation file.
(re_set_whitespace_regexp): Change the arg's type to not use it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex.c | 7 |
1 files 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 () | |||
| 524 | #define MAX(a, b) ((a) > (b) ? (a) : (b)) | 524 | #define MAX(a, b) ((a) > (b) ? (a) : (b)) |
| 525 | #define MIN(a, b) ((a) < (b) ? (a) : (b)) | 525 | #define MIN(a, b) ((a) < (b) ? (a) : (b)) |
| 526 | 526 | ||
| 527 | /* Type of source-pattern and string chars. */ | ||
| 528 | typedef const unsigned char re_char; | ||
| 529 | |||
| 527 | typedef char boolean; | 530 | typedef char boolean; |
| 528 | #define false 0 | 531 | #define false 0 |
| 529 | #define true 1 | 532 | #define true 1 |
| @@ -1262,9 +1265,9 @@ static re_char *whitespace_regexp; | |||
| 1262 | 1265 | ||
| 1263 | void | 1266 | void |
| 1264 | re_set_whitespace_regexp (regexp) | 1267 | re_set_whitespace_regexp (regexp) |
| 1265 | re_char *regexp; | 1268 | const char *regexp; |
| 1266 | { | 1269 | { |
| 1267 | whitespace_regexp = regexp; | 1270 | whitespace_regexp = (re_char *) regexp; |
| 1268 | } | 1271 | } |
| 1269 | WEAK_ALIAS (__re_set_syntax, re_set_syntax) | 1272 | WEAK_ALIAS (__re_set_syntax, re_set_syntax) |
| 1270 | 1273 | ||