You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by bj...@locus.apache.org on 2000/04/19 18:20:08 UTC

cvs commit: apache-2.0/src/include httpd.h

bjh         00/04/19 09:20:08

  Modified:    src/include httpd.h
  Log:
  Provide prototypes for the provided strcasecmp & strncasecmp.
  
  Revision  Changes    Path
  1.39      +8 -0      apache-2.0/src/include/httpd.h
  
  Index: httpd.h
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/include/httpd.h,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- httpd.h	2000/04/14 15:58:17	1.38
  +++ httpd.h	2000/04/19 16:20:07	1.39
  @@ -942,6 +942,14 @@
   API_EXPORT(char *) ap_uudecode(ap_pool_t *p, const char *bufcoded);
   API_EXPORT(char *) ap_uuencode(ap_pool_t *p, char *string); 
   
  +#ifndef HAVE_STRCASECMP
  +int strcasecmp(const char *a, const char *b);
  +#endif
  +
  +#ifndef HAVE_STRNCASECMP
  +int strncasecmp(const char *a, const char *b, int n);
  +#endif
  +
   /* Regexes */
   #if defined(AP_USE_HSREGEX) || defined(WIN32)
   #include "hsregex.h"
  
  
  

Re: cvs commit: apache-2.0/src/include httpd.h

Posted by Brian Havard <br...@kheldar.apana.org.au>.
On Wed, 19 Apr 2000 16:20:31 -0700 (PDT), Greg Stein wrote:

>Eeek. These probably ought to be namespace protected. Probably go into
>APR, too.

Well, maybe, but being wrapped in #ifndef HAVE_STRCASECMP, just like the
function definitions themselves (in util.c), it should be pretty safe. v1.3
has 

#ifdef NEED_STRCASECMP
extern int strcasecmp (const char *a, const char *b);
#endif

in ap_config.h and I'm not aware of it ever causing problems.



>On 19 Apr 2000 bjh@locus.apache.org wrote:
>
>> bjh         00/04/19 09:20:08
>> 
>>   Modified:    src/include httpd.h
>>   Log:
>>   Provide prototypes for the provided strcasecmp & strncasecmp.

-- 
 ______________________________________________________________________________
 |  Brian Havard                 |  "He is not the messiah!                   |
 |  brianh@kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |
 ------------------------------------------------------------------------------


Re: cvs commit: apache-2.0/src/include httpd.h

Posted by Greg Stein <gs...@lyra.org>.
Eeek. These probably ought to be namespace protected. Probably go into
APR, too.

-g


On 19 Apr 2000 bjh@locus.apache.org wrote:

> bjh         00/04/19 09:20:08
> 
>   Modified:    src/include httpd.h
>   Log:
>   Provide prototypes for the provided strcasecmp & strncasecmp.
>   
>   Revision  Changes    Path
>   1.39      +8 -0      apache-2.0/src/include/httpd.h
>   
>   Index: httpd.h
>   ===================================================================
>   RCS file: /home/cvs/apache-2.0/src/include/httpd.h,v
>   retrieving revision 1.38
>   retrieving revision 1.39
>   diff -u -r1.38 -r1.39
>   --- httpd.h	2000/04/14 15:58:17	1.38
>   +++ httpd.h	2000/04/19 16:20:07	1.39
>   @@ -942,6 +942,14 @@
>    API_EXPORT(char *) ap_uudecode(ap_pool_t *p, const char *bufcoded);
>    API_EXPORT(char *) ap_uuencode(ap_pool_t *p, char *string); 
>    
>   +#ifndef HAVE_STRCASECMP
>   +int strcasecmp(const char *a, const char *b);
>   +#endif
>   +
>   +#ifndef HAVE_STRNCASECMP
>   +int strncasecmp(const char *a, const char *b, int n);
>   +#endif
>   +
>    /* Regexes */
>    #if defined(AP_USE_HSREGEX) || defined(WIN32)
>    #include "hsregex.h"
>   
>   
>   
> 

-- 
Greg Stein, http://www.lyra.org/