apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@locus.apache.org
Subject cvs commit: apr/include apr_lib.h
Date Sun, 03 Dec 2000 15:48:42 GMT
dreid       00/12/03 07:48:42

  Modified:    .        configure.in
               include  apr_lib.h
  Log:
  Try to deal with isascii in a better manner.  As we include ctype.h if
  it's available we can just check if it's been defined and so dispense
  with the check in configure.
  
  Revision  Changes    Path
  1.181     +1 -1      apr/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apr/configure.in,v
  retrieving revision 1.180
  retrieving revision 1.181
  diff -u -r1.180 -r1.181
  --- configure.in	2000/12/01 21:33:57	1.180
  +++ configure.in	2000/12/03 15:48:41	1.181
  @@ -635,7 +635,7 @@
   AC_CHECK_DEFINE(LOCK_EX, sys/file.h)
   AC_CHECK_DEFINE(F_SETLK, fcntl.h)
   AC_CHECK_DEFINE(CODESET, langinfo.h)
  -AC_CHECK_DEFINE(isascii, ctype.h)
  +
   # We are assuming that if the platform doesn't have POLLIN, it doesn't have
   # any POLL definitions.
   AC_CHECK_DEFINE_FILES(POLLIN, poll.h sys/poll.h)
  
  
  
  1.46      +4 -4      apr/include/apr_lib.h
  
  Index: apr_lib.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_lib.h,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- apr_lib.h	2000/12/03 10:11:43	1.45
  +++ apr_lib.h	2000/12/03 15:48:41	1.46
  @@ -113,7 +113,11 @@
   #define apr_isdigit(c) (isdigit(((unsigned char)(c))))
   #define apr_isgraph(c) (isgraph(((unsigned char)(c))))
   #define apr_islower(c) (islower(((unsigned char)(c))))
  +#ifdef isascii
   #define apr_isascii(c) (isascii(((unsigned char)(c))))
  +#else
  +#define apr_isascii(c) (((c) & ~0x7f)==0)
  +#endif
   #define apr_isprint(c) (isprint(((unsigned char)(c))))
   #define apr_ispunct(c) (ispunct(((unsigned char)(c))))
   #define apr_isspace(c) (isspace(((unsigned char)(c))))
  @@ -121,10 +125,6 @@
   #define apr_isxdigit(c) (isxdigit(((unsigned char)(c))))
   #define apr_tolower(c) (tolower(((unsigned char)(c))))
   #define apr_toupper(c) (toupper(((unsigned char)(c))))
  -
  -#if BEOS && __POWER_PC__
  -#define isascii(c) (((c) & ~0x7f)==0)
  -#endif
   
   /*
    * Small utility macros to make things easier to read.  Not usually a
  
  
  

Mime
View raw message