Mercurial > hg > xemacs-beta
comparison src/regex.c @ 126:1370575f1259 xemacs-20-1p1
Import from CVS: tag xemacs-20-1p1
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:27:39 +0200 |
parents | fe104dbd9147 |
children | 6b37e6ddd302 |
comparison
equal
deleted
inserted
replaced
125:8b0638b347ec | 126:1370575f1259 |
---|---|
3890 if (bufp->used > 0 && (re_opcode_t) bufp->buffer[0] == begbuf && range > 0) | 3890 if (bufp->used > 0 && (re_opcode_t) bufp->buffer[0] == begbuf && range > 0) |
3891 { | 3891 { |
3892 if (startpos > 0) | 3892 if (startpos > 0) |
3893 return -1; | 3893 return -1; |
3894 else | 3894 else |
3895 range = 1; | 3895 { |
3896 d = ((CONST unsigned char *) | |
3897 (startpos >= size1 ? string2 - size1 : string1) + startpos); | |
3898 range = charcount_to_bytecount (d, 1); | |
3899 } | |
3896 } | 3900 } |
3897 | 3901 |
3898 /* Update the fastmap now if not correct already. */ | 3902 /* Update the fastmap now if not correct already. */ |
3899 if (fastmap && !bufp->fastmap_accurate) | 3903 if (fastmap && !bufp->fastmap_accurate) |
3900 if (re_compile_fastmap (bufp) == -2) | 3904 if (re_compile_fastmap (bufp) == -2) |