]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Fix three problems with pcre for portability;
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 17 Mar 2005 17:50:29 +0000 (17:50 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 17 Mar 2005 17:50:29 +0000 (17:50 +0000)
commitb1d6541d7c96baaff40b16882350ababca358284
tree78237b6fe318452905c599d98fc79a184bb5b930
parentcdea6cc2b9eee9905d684d09581e62455bda0f49
  Fix three problems with pcre for portability;

  1. study.c's pointer arg didn't jive with pcre_fullinfo()'s prototype,
     however there was no (trivial) way to get them to concur.  Cast in
     this case was the least of several evils.

  2. byteflip had an error for high-bit set bytes, because right shift
     signed is allowed to extend the sign bit.  These had to be unsigned,
     and the real_pcre types were the safest way to do this.

  3. split byteflip into byteflip2/4, to drop size truncation emits,
     as the arguments are unambigiously 16 or 32 bits as defined
     in pcre_internal.h.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@157948 13f79535-47bb-0310-9956-ffa450edef68
srclib/pcre/pcre.c
srclib/pcre/study.c