[Cyrus-CVS] src/sieve by brong

brong at andrew.cmu.edu brong at andrew.cmu.edu
Tue Feb 3 00:14:51 EST 2009


Update of /afs/andrew.cmu.edu/system/cvs/src/sieve
In directory unix14.andrew.cmu.edu:/afs/andrew.cmu.edu/usr3/brong/src/cyrus/sieve

Modified Files:
	comparator.c 
Log Message:
Use REG_STARTEND instead

The PCRE library supports using REG_STARTEND to specify the start and
end offsets, which the BSD library also supports, and it looks like
recent Linux libc as well.  So if we have REG_STARTEND, use that.

It appears the RX library doesn't support REG_STARTEND, so use its API
if we don't have REG_STARTEND but do have RX.

Finally, fall back to duplicating the entire string and using the
POSIX API directly.


--- links to diffs follow ---
http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/sieve/comparator.c.diff?r1=1.22&r2=1.23


More information about the Cyrus-cvs mailing list