You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Stefan Eissing <st...@greenbytes.de> on 2015/08/17 14:47:12 UTC
Re: svn commit: r1692486 [2/2] - in /httpd/httpd/trunk: docs/log-message-tags/ include/ modules/http2/ modules/ssl/ server/
> Am 24.07.2015 um 15:51 schrieb Ruediger Pluem <rp...@apache.org>:
>>
>> +/* Something like this must be in APR, only I do not find it... */
>> +static int array_index(apr_array_header_t *array, const char *s)
>> +{
>> + int i;
>> + for (i = 0; i < array->nelts; i++) {
>> + const char *p = APR_ARRAY_IDX(array, i, const char *);
>> + if (!strcmp(p, s)) {
>> + return i;
>> + }
>> + }
>> + return -1;
>> +}
>
> If not in APR it should probably be put into util.c and made ap_array_index.
> Once in APR it could be converted into a wrapper macro around the APR function.
Checked in as r1696264.
//Stefan
<green/>bytes GmbH
Hafenweg 16, 48155 Münster, Germany
Phone: +49 251 2807760. Amtsgericht Münster: HRB5782