Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

apr_lib.h

Go to the documentation of this file.
00001 /* Copyright 2000-2004 The Apache Software Foundation 00002 * 00003 * Licensed under the Apache License, Version 2.0 (the "License"); 00004 * you may not use this file except in compliance with the License. 00005 * You may obtain a copy of the License at 00006 * 00007 * http://www.apache.org/licenses/LICENSE-2.0 00008 * 00009 * Unless required by applicable law or agreed to in writing, software 00010 * distributed under the License is distributed on an "AS IS" BASIS, 00011 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00012 * See the License for the specific language governing permissions and 00013 * limitations under the License. 00014 */ 00015 00016 #ifndef APR_LIB_H 00017 #define APR_LIB_H 00018 00027 #include "apr.h" 00028 #include "apr_errno.h" 00029 00030 #if APR_HAVE_CTYPE_H 00031 #include <ctype.h> 00032 #endif 00033 #if APR_HAVE_STDARG_H 00034 #include <stdarg.h> 00035 #endif 00036 00037 #ifdef __cplusplus 00038 extern "C" { 00039 #endif /* __cplusplus */ 00040 00051 #define HUGE_STRING_LEN 8192 00052 00053 /* 00054 * Define the structures used by the APR general-purpose library. 00055 */ 00056 00058 typedef struct apr_vformatter_buff_t apr_vformatter_buff_t; 00059 00063 struct apr_vformatter_buff_t { 00065 char *curpos; 00067 char *endpos; 00068 }; 00069 00083 APR_DECLARE(const char *) apr_filepath_name_get(const char *pathname); 00084 00086 APR_DECLARE(const char *) apr_filename_of_pathname(const char *pathname); 00087 00094 #ifdef WIN32 00095 #define apr_killpg(x, y) 00096 #else /* WIN32 */ 00097 #ifdef NO_KILLPG 00098 #define apr_killpg(x, y) (kill (-(x), (y))) 00099 #else /* NO_KILLPG */ 00100 #define apr_killpg(x, y) (killpg ((x), (y))) 00101 #endif /* NO_KILLPG */ 00102 #endif /* WIN32 */ 00103 00165 APR_DECLARE(int) apr_vformatter(int (*flush_func)(apr_vformatter_buff_t *b), 00166 apr_vformatter_buff_t *c, const char *fmt, 00167 va_list ap); 00168 00175 APR_DECLARE(apr_status_t) apr_password_get(const char *prompt, char *pwbuf, 00176 apr_size_t *bufsize); 00177 00189 #define apr_isalnum(c) (isalnum(((unsigned char)(c)))) 00191 #define apr_isalpha(c) (isalpha(((unsigned char)(c)))) 00193 #define apr_iscntrl(c) (iscntrl(((unsigned char)(c)))) 00195 #define apr_isdigit(c) (isdigit(((unsigned char)(c)))) 00197 #define apr_isgraph(c) (isgraph(((unsigned char)(c)))) 00199 #define apr_islower(c) (islower(((unsigned char)(c)))) 00201 #ifdef isascii 00202 #define apr_isascii(c) (isascii(((unsigned char)(c)))) 00203 #else 00204 #define apr_isascii(c) (((c) & ~0x7f)==0) 00205 #endif 00207 #define apr_isprint(c) (isprint(((unsigned char)(c)))) 00209 #define apr_ispunct(c) (ispunct(((unsigned char)(c)))) 00211 #define apr_isspace(c) (isspace(((unsigned char)(c)))) 00213 #define apr_isupper(c) (isupper(((unsigned char)(c)))) 00215 #define apr_isxdigit(c) (isxdigit(((unsigned char)(c)))) 00217 #define apr_tolower(c) (tolower(((unsigned char)(c)))) 00219 #define apr_toupper(c) (toupper(((unsigned char)(c)))) 00220 00223 #ifdef __cplusplus 00224 } 00225 #endif 00226 00227 #endif /* ! APR_LIB_H */

Generated on Tue Aug 10 17:42:34 2004 for Apache Portable Runtime by doxygen 1.3.7