Mercurial > hg > xemacs-beta
comparison src/search.c @ 163:0132846995bd r20-3b8
Import from CVS: tag r20-3b8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:43:35 +0200 |
parents | 43dd3413c7c7 |
children | 8eaf7971accc |
comparison
equal
deleted
inserted
replaced
162:4de2936b4e77 | 163:0132846995bd |
---|---|
582 Bytind ceil; | 582 Bytind ceil; |
583 Bufbyte *bufptr; | 583 Bufbyte *bufptr; |
584 | 584 |
585 ceil = BI_BUF_CEILING_OF (buf, st); | 585 ceil = BI_BUF_CEILING_OF (buf, st); |
586 ceil = min (lim, ceil); | 586 ceil = min (lim, ceil); |
587 bufptr = memchr (BI_BUF_BYTE_ADDRESS (buf, st), (int) target, | 587 bufptr = (Bufbyte *) memchr (BI_BUF_BYTE_ADDRESS (buf, st), |
588 ceil - st); | 588 (int) target, ceil - st); |
589 if (bufptr) | 589 if (bufptr) |
590 { | 590 { |
591 count--; | 591 count--; |
592 st = BI_BUF_PTR_BYTE_POS (buf, bufptr) + 1; | 592 st = BI_BUF_PTR_BYTE_POS (buf, bufptr) + 1; |
593 } | 593 } |