You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by gs...@locus.apache.org on 2000/11/26 05:27:57 UTC

cvs commit: apr/include apr_errno.h apr_general.h

gstein      00/11/25 20:27:57

  Modified:    include  apr_errno.h apr_general.h
  Log:
  move apr_strerror() from apr_general.h to apr_errno.h
  
  Revision  Changes    Path
  1.44      +10 -0     apr/include/apr_errno.h
  
  Index: apr_errno.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_errno.h,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -u -r1.43 -r1.44
  --- apr_errno.h	2000/11/11 00:12:39	1.43
  +++ apr_errno.h	2000/11/26 04:27:55	1.44
  @@ -56,7 +56,10 @@
   #define APR_ERRNO_H
   
   #include "apr.h"
  +
  +#if APR_HAVE_ERRNO_H
   #include <errno.h>
  +#endif
   
   #ifdef __cplusplus
   extern "C" {
  @@ -76,6 +79,13 @@
    */
   int apr_canonical_error(apr_status_t err);
   
  +/**
  + * Return a human readable string describing the specified error.
  + * @param statcode The error code the get a string for.
  + * @param buf A buffer to hold the error string.
  + * @param bufsize Size of the buffer to hold the string.
  + */
  +char *apr_strerror(apr_status_t statcode, char *buf, apr_size_t bufsize);
   
   /*
    * APR_OS_START_ERROR is where the APR specific error values should start.
  
  
  
  1.45      +0 -8      apr/include/apr_general.h
  
  Index: apr_general.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_general.h,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -u -r1.44 -r1.45
  --- apr_general.h	2000/11/26 03:00:00	1.44
  +++ apr_general.h	2000/11/26 04:27:56	1.45
  @@ -276,14 +276,6 @@
    */
   apr_status_t apr_set_abort(int (*apr_abort)(int retcode), apr_pool_t *cont);
   
  -/**
  - * Return a human readable string describing the specified error.
  - * @param statcode The error code the get a string for.
  - * @param buf A buffer to hold the error string.
  - * @param bufsize Size of the buffer to hold the string.
  - */
  -char *apr_strerror(apr_status_t statcode, char *buf, apr_size_t bufsize);
  -
   #ifdef __cplusplus
   }
   #endif