diff options
| author | Jim Blandy | 1993-04-06 02:42:52 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-04-06 02:42:52 +0000 |
| commit | a1dd004b3dab4ee255297884d1b60ebce661630b (patch) | |
| tree | 65dfe0070d3d6e00882b13381095ed65f1ede4a9 /src | |
| parent | 594be62efdff149ca16308e763bcf747b934d21f (diff) | |
| download | emacs-a1dd004b3dab4ee255297884d1b60ebce661630b.tar.gz emacs-a1dd004b3dab4ee255297884d1b60ebce661630b.zip | |
*** empty log message ***
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/regex.c b/src/regex.c index 8169880d7e4..032b4d022e7 100644 --- a/src/regex.c +++ b/src/regex.c | |||
| @@ -127,7 +127,18 @@ init_syntax_once () | |||
| 127 | /* isalpha etc. are used for the character classes. */ | 127 | /* isalpha etc. are used for the character classes. */ |
| 128 | #include <ctype.h> | 128 | #include <ctype.h> |
| 129 | 129 | ||
| 130 | #ifndef isascii | 130 | /* Jim Meyering writes: |
| 131 | |||
| 132 | "... Some ctype macros are valid only for character codes that | ||
| 133 | isascii says are ASCII (SGI's IRIX-4.0.5 is one such system --when | ||
| 134 | using /bin/cc or gcc but without giving an ansi option). So, all | ||
| 135 | ctype uses should be through macros like ISPRINT... If | ||
| 136 | STDC_HEADERS is defined, then autoconf has verified that the ctype | ||
| 137 | macros don't need to be guarded with references to isascii. ... | ||
| 138 | Defining isascii to 1 should let any compiler worth its salt | ||
| 139 | eliminate the && through constant folding." */ | ||
| 140 | #if ! defined (isascii) || defined (STDC_HEADERS) | ||
| 141 | #undef isascii | ||
| 131 | #define isascii(c) 1 | 142 | #define isascii(c) 1 |
| 132 | #endif | 143 | #endif |
| 133 | 144 | ||
| @@ -3463,7 +3474,11 @@ re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop) | |||
| 3463 | } | 3474 | } |
| 3464 | } | 3475 | } |
| 3465 | else | 3476 | else |
| 3466 | assert (bufp->regs_allocated == REGS_FIXED); | 3477 | { |
| 3478 | /* These braces fend off a "empty body in an else-statement" | ||
| 3479 | warning under GCC when assert expands to nothing. */ | ||
| 3480 | assert (bufp->regs_allocated == REGS_FIXED); | ||
| 3481 | } | ||
| 3467 | 3482 | ||
| 3468 | /* Convert the pointer data in `regstart' and `regend' to | 3483 | /* Convert the pointer data in `regstart' and `regend' to |
| 3469 | indices. Register zero has to be set differently, | 3484 | indices. Register zero has to be set differently, |