Mercurial > emacs
comparison src/regex.c @ 28268:33f65d22f2a8
(re_compile_fastmap, re_match_2_internal): Fix cast to re_opcode_t.
author | Dave Love <fx@gnu.org> |
---|---|
date | Wed, 22 Mar 2000 14:25:38 +0000 |
parents | f955117a1fcd |
children | 24a23e27dac6 |
comparison
equal
deleted
inserted
replaced
28267:0a30b471e996 | 28268:33f65d22f2a8 |
---|---|
3460 if (!fastmap) break; | 3460 if (!fastmap) break; |
3461 #ifndef emacs | 3461 #ifndef emacs |
3462 not = (re_opcode_t)p[-1] == notsyntaxspec; | 3462 not = (re_opcode_t)p[-1] == notsyntaxspec; |
3463 k = *p++; | 3463 k = *p++; |
3464 for (j = 0; j < (1 << BYTEWIDTH); j++) | 3464 for (j = 0; j < (1 << BYTEWIDTH); j++) |
3465 if ((SYNTAX (j) == (enum syntaxcode) k) ^ not) | 3465 if ((SYNTAX (j) == (re_opcode_t) k) ^ not) |
3466 fastmap[j] = 1; | 3466 fastmap[j] = 1; |
3467 break; | 3467 break; |
3468 #else /* emacs */ | 3468 #else /* emacs */ |
3469 /* This match depends on text properties. These end with | 3469 /* This match depends on text properties. These end with |
3470 aborting optimizations. */ | 3470 aborting optimizations. */ |
5361 else | 5361 else |
5362 /* everything should be handled as ASCII, even though it | 5362 /* everything should be handled as ASCII, even though it |
5363 looks like multibyte form. */ | 5363 looks like multibyte form. */ |
5364 c = *d, len = 1; | 5364 c = *d, len = 1; |
5365 | 5365 |
5366 if ((SYNTAX (c) != (enum syntaxcode) mcnt) ^ not) | 5366 if ((SYNTAX (c) != (re_opcode_t) mcnt) ^ not) |
5367 goto fail; | 5367 goto fail; |
5368 d += len; | 5368 d += len; |
5369 } | 5369 } |
5370 break; | 5370 break; |
5371 | 5371 |