123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- #ifndef APR_LIB_H
- #define APR_LIB_H
- #include "apr.h"
- #include "apr_errno.h"
- #if APR_HAVE_CTYPE_H
- #include <ctype.h>
- #endif
- #if APR_HAVE_STDARG_H
- #include <stdarg.h>
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define HUGE_STRING_LEN 8192
- typedef struct apr_vformatter_buff_t apr_vformatter_buff_t;
- struct apr_vformatter_buff_t {
-
- char *curpos;
-
- char *endpos;
- };
- APR_DECLARE(const char *) apr_filepath_name_get(const char *pathname);
- #ifdef WIN32
- #define apr_killpg(x, y)
- #else
- #ifdef NO_KILLPG
- #define apr_killpg(x, y) (kill (-(x), (y)))
- #else
- #define apr_killpg(x, y) (killpg ((x), (y)))
- #endif
- #endif
- APR_DECLARE(int) apr_vformatter(int (*flush_func)(apr_vformatter_buff_t *b),
- apr_vformatter_buff_t *c, const char *fmt,
- va_list ap);
- APR_DECLARE(apr_status_t) apr_password_get(const char *prompt, char *pwbuf,
- apr_size_t *bufsize);
- #define apr_isalnum(c) (isalnum(((unsigned char)(c))))
- #define apr_isalpha(c) (isalpha(((unsigned char)(c))))
- #define apr_iscntrl(c) (iscntrl(((unsigned char)(c))))
- #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))))
- #define apr_isupper(c) (isupper(((unsigned char)(c))))
- #define apr_isxdigit(c) (isxdigit(((unsigned char)(c))))
- #define apr_tolower(c) (tolower(((unsigned char)(c))))
- #define apr_toupper(c) (toupper(((unsigned char)(c))))
- #ifdef __cplusplus
- }
- #endif
- #endif
|