Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A78CE200B32 for ; Thu, 9 Jun 2016 03:04:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A6213160A35; Thu, 9 Jun 2016 01:04:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EC611160A2E for ; Thu, 9 Jun 2016 03:04:52 +0200 (CEST) Received: (qmail 29401 invoked by uid 500); 9 Jun 2016 01:04:52 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 29392 invoked by uid 99); 9 Jun 2016 01:04:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2016 01:04:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id ADF2F180E5F for ; Thu, 9 Jun 2016 01:04:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.374 X-Spam-Level: X-Spam-Status: No, score=0.374 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 0dfNc6-crWkD for ; Thu, 9 Jun 2016 01:04:50 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTP id 3BBE45F1BE for ; Thu, 9 Jun 2016 01:04:50 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 281DEE017A for ; Thu, 9 Jun 2016 01:04:49 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 45D933A0287 for ; Thu, 9 Jun 2016 01:04:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1747477 - in /httpd/httpd/trunk: include/httpd.h server/util.c Date: Thu, 09 Jun 2016 01:04:47 -0000 To: cvs@httpd.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160609010448.45D933A0287@svn01-us-west.apache.org> archived-at: Thu, 09 Jun 2016 01:04:53 -0000 Author: wrowe Date: Thu Jun 9 01:04:47 2016 New Revision: 1747477 URL: http://svn.apache.org/viewvc?rev=1747477&view=rev Log: Major issue with these two specific edits falling into r1747469 is that it becomes impossible to cleanly merge into branches/2.4.x. Reverting this one functional/historical edit, to recommit for merging. Modified: httpd/httpd/trunk/include/httpd.h httpd/httpd/trunk/server/util.c Modified: httpd/httpd/trunk/include/httpd.h URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/httpd.h?rev=1747477&r1=1747476&r2=1747477&view=diff ============================================================================== --- httpd/httpd/trunk/include/httpd.h (original) +++ httpd/httpd/trunk/include/httpd.h Thu Jun 9 01:04:47 2016 @@ -2470,32 +2470,23 @@ AP_DECLARE(int) ap_array_str_contains(co const char *s); /** - * Perform a case-insensitive comparison of two strings @a atr1 and @a atr2, - * treating upper and lower case values of the 26 standard C/POSIX alphabetic - * characters as equivalent. Extended latin characters outside of this set - * are treated as unique octets, irrespective of the current locale. - * - * Returns in integer greater than, equal to, or less than 0, - * according to whether @a str1 is considered greater than, equal to, - * or less than @a str2. - * - * @note Same code as apr_cstr_casecmp, which arrives in APR 1.6 + * Known-fast version of strcasecmp(): ASCII case-folding, POSIX compliant + * @param s1 The 1st string to compare + * @param s2 The 2nd string to compare + * @return 0 if s1 is lexicographically equal to s2 ignoring case; + * non-0 otherwise. */ -AP_DECLARE(int) ap_cstr_casecmp(const char *s1, const char *s2); +AP_DECLARE(int) ap_casecmpstr(const char *s1, const char *s2); /** - * Perform a case-insensitive comparison of two strings @a atr1 and @a atr2, - * treating upper and lower case values of the 26 standard C/POSIX alphabetic - * characters as equivalent. Extended latin characters outside of this set - * are treated as unique octets, irrespective of the current locale. - * - * Returns in integer greater than, equal to, or less than 0, - * according to whether @a str1 is considered greater than, equal to, - * or less than @a str2. - * - * @note Same code as apr_cstr_casecmp, which arrives in APR 1.6 + * Known-fast version of strncasecmp(): ASCII case-folding, POSIX compliant + * @param s1 The 1st string to compare + * @param s2 The 2nd string to compare + * @param n Maximum number of characters in the strings to compare + * @return 0 if s1 is lexicographically equal to s2 ignoring case; + * non-0 otherwise. */ -AP_DECLARE(int) ap_cstr_casecmpn(const char *s1, const char *s2, apr_size_t n); +AP_DECLARE(int) ap_casecmpstrn(const char *s1, const char *s2, apr_size_t n); #ifdef __cplusplus } Modified: httpd/httpd/trunk/server/util.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util.c?rev=1747477&r1=1747476&r2=1747477&view=diff ============================================================================== --- httpd/httpd/trunk/server/util.c (original) +++ httpd/httpd/trunk/server/util.c Thu Jun 9 01:04:47 2016 @@ -3316,7 +3316,7 @@ static const short ucharmap[] = { }; #endif -AP_DECLARE(int) ap_cstr_casecmpn(const char *s1, const char *s2) +AP_DECLARE(int) ap_casecmpstrn(const char *s1, const char *s2) { const unsigned char *str1 = (const unsigned char *)s1; const unsigned char *str2 = (const unsigned char *)s2; @@ -3333,7 +3333,7 @@ AP_DECLARE(int) ap_cstr_casecmpn(const c } } -AP_DECLARE(int) ap_cstr_casecmpn(const char *s1, const char *s2, apr_size_t n) +AP_DECLARE(int) ap_casecmpstrn(const char *s1, const char *s2, apr_size_t n) { const unsigned char *str1 = (const unsigned char *)s1; const unsigned char *str2 = (const unsigned char *)s2;