#ifndef AP_FILTER_H
#define AP_FILTER_H
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include "apr.h"
+#include "apr_buckets.h"
+
+#include "httpd.h"
-#ifdef APR_HAVE_STDARG_H
+#if APR_HAVE_STDARG_H
#include <stdarg.h>
#endif
-#include "httpd.h"
-#include "apr.h"
-#include "apr_buckets.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
/**
* @package Apache filter library
#include "apr_strings.h"
#include "apr_network_io.h"
+#include "apr_lib.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#include "ap_config.h"
#include "httpd.h"
#include "http_core.h"
#include "http_config.h"
#include "http_log.h"
#include "http_request.h"
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#ifdef HAVE_NETINET_IN_H
+
+#if APR_HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
-
-#ifdef HAVE_ARPA_INET_H
+#if APR_HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
* no control is passed along.
*/
-#include "ap_config.h"
#include "apr_strings.h"
#include "apr_md5.h"
+#include "apr_lib.h"
+
+#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#endif
#include "httpd.h"
#include "http_config.h"
-#include "http_conf_globals.h"
#include "http_core.h"
#include "http_request.h"
#include "http_log.h"
#include "apr_file_io.h"
#include "apr_uuid.h"
+#define APR_WANT_MEMFUNC
+#include "apr_want.h"
+
#include "httpd.h"
#include "http_log.h"
** so that we can keep the connection open.
*/
+#include "apr_strings.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_protocol.h"
#include "http_request.h"
#include "util_script.h"
-#include "apr_strings.h"
#include "mod_dav.h"
** - various utilities, repository-independent
*/
+#include "apr_strings.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#include "mod_dav.h"
#include "http_request.h"
#include "http_log.h"
#include "http_protocol.h"
-#include "apr_strings.h"
-
DAV_DECLARE(dav_error*) dav_new_error(apr_pool_t *p, int status,
int error_id, const char *desc)
{
#include "apr_thread_proc.h"
#include "apr_hash.h"
#include "apr_user.h"
+#include "apr_lib.h"
#define CORE_PRIVATE
*
* Adapted to Apache by rst.
*
- * Version sort added by Martin Pool <mbp@humbug.org.au>. */
+ * Version sort added by Martin Pool <mbp@humbug.org.au>.
+ */
#include "apr_strings.h"
+#include "apr_fnmatch.h"
+#include "apr_strings.h"
+#include "apr_lib.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
#include "http_main.h"
#include "util_script.h"
-#include "apr_fnmatch.h"
-#include "apr_strings.h"
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
+
module AP_MODULE_DECLARE_DATA autoindex_module;
#include "apr.h"
#include "apr_strings.h"
#include "apr_buckets.h"
+#include "apr_lib.h"
#define APR_WANT_STDIO /* for sscanf */
#define APR_WANT_STRFUNC
#define APR_WANT_MEMFUNC
#include "apr_want.h"
-#if APR_HAVE_STDARG_H
-#include <stdarg.h>
-#endif
-
#define CORE_PRIVATE
#include "util_filter.h"
#include "ap_config.h"
#include "mod_core.h"
-#ifdef HAVE_UNISTD_H
+#if APR_HAVE_STDARG_H
+#include <stdarg.h>
+#endif
+#if APR_HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "apr_file_io.h"
#include "apr_fnmatch.h"
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#define CORE_PRIVATE
#include "ap_config.h"
#include "httpd.h"
#include "mod_core.h"
-#ifdef APR_HAVE_STDARG_H
+#if APR_HAVE_STDARG_H
#include <stdarg.h>
#endif
*
* --- rst */
-#define DEFAULT_LOG_FORMAT "%h %l %u %t \"%r\" %>s %b"
-
#include "apr_strings.h"
+#include "apr_lib.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_core.h" /* For REMOTE_NAME */
#include "http_log.h"
#include "http_protocol.h"
-#ifdef HAVE_UNISTD_H
+
+#if APR_HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
+
+#define DEFAULT_LOG_FORMAT "%h %l %u %t \"%r\" %>s %b"
module AP_MODULE_DECLARE_DATA config_log_module;
*/
#include "apr_strings.h"
+#include "apr_lib.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_request.h"
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
+
typedef struct {
const char *real;
#include "apr.h"
#include "apr_strings.h"
+#include "apr_lib.h"
-#if APR_HAVE_STDIO_H
-#include <stdio.h> /* for sscanf() */
-#endif
+#define APR_WANT_STDIO /* for sscanf() */
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
#include "ap_config.h"
#include "httpd.h"
#include "http_main.h"
#include "http_log.h"
#include "util_script.h"
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
+
#define IMAP_MAGIC_TYPE "application/x-httpd-imap"
#define MAXVERTS 100
#include "apr.h"
#include "apr_strings.h"
#include "apr_file_io.h"
+#include "apr_lib.h"
-#if APR_HAVE_STDIO_H
-#include <stdio.h> /* for EOF */
-#endif
+#define APR_WANT_STDIO /* for EOF */
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
#include "ap_config.h"
#include "httpd.h"
#include "http_core.h"
#include "http_log.h"
#include "util_script.h"
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
+
#define MAP_FILE_MAGIC_TYPE "application/x-type-map"
** www.engelschall.com
*/
+#include "apr.h"
+#include "apr_strings.h"
+#include "apr_user.h"
+#include "apr_lib.h"
+
+#define APR_WANT_STRFUNC
+#define APR_WANT_IOVEC
+#include "apr_want.h"
+
+#if APR_HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#if APR_HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
#include "http_protocol.h"
#include "mod_rewrite.h"
-#include "apr_strings.h"
-#include "apr_user.h"
-#if !defined(OS2) && !defined(WIN32)
+#if !defined(OS2) && !defined(WIN32) && !defined(BEOS)
#include "unixd.h"
#endif
-#ifndef NO_WRITEV
-#ifndef NETWARE
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-#endif
-#if APR_HAVE_SYS_UIO_H
-#include <sys/uio.h>
-#endif
-#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
/*
** +-------------------------------------------------------+
** | |
* University of Illinois, Urbana-Champaign.
*/
-#ifndef _MOD_REWRITE_H
-#define _MOD_REWRITE_H 1
+#ifndef MOD_REWRITE_H
+#define MOD_REWRITE_H 1
/*
** _ _ _
** www.engelschall.com
*/
+#include "apr.h"
+
+#define APR_WANT_STRFUNC
+#define APR_WANT_MEMFUNC
+#include "apr_want.h"
/* Include from the underlaying Unix system ... */
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-#ifdef APR_HAVE_STDARG_H
+#if APR_HAVE_STDARG_H
#include <stdarg.h>
#endif
-#ifdef HAVE_STDLIB_H
+#if APR_HAVE_STDLIB_H
#include <stdlib.h>
#endif
-#ifdef HAVE_TIME_H
-#include <time.h>
-#endif
-#ifdef HAVE_CTYPE_H
+#if APR_HAVE_CTYPE_H
#include <ctype.h>
#endif
-#ifndef NETWARE
+#if APR_HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
-/* are these needed anymore? rbb */
-#include <signal.h>
-#include <errno.h>
+
+#include "ap_config.h"
+
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
/* Include from the Apache server ... */
#define CORE_PRIVATE
static char *find_closing_bracket(char *s, int left, int right);
static char *find_char_in_brackets(char *s, int c, int left, int right);
-#endif /* _MOD_REWRITE_H */
-
-/*EOF*/
+#endif /* MOD_REWRITE_H */
#include "apr_strings.h"
#include "apr_errno.h"
#include "apr_thread_proc.h"
+#include "apr_lib.h"
+
+#define APR_WANT_STDIO
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
-#if APR_HAVE_STDIO_H
-#include <stdio.h>
-#endif
#if APR_HAVE_STDARG_H
#include <stdarg.h>
#endif
+#if APR_HAVE_UNISTD_H
+#include <unistd.h>
+#endif
#define CORE_PRIVATE
#include "http_log.h"
#include "http_main.h"
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
typedef struct {
char *t_name;
int t_val;
#include "apr_strings.h"
#include "apr_getopt.h"
#include "apr_general.h"
+#include "apr_lib.h"
-#if APR_HAVE_STDIO_H
-#include <stdio.h>
-#endif
+#define APR_WANT_STDIO
+#include "apr_want.h"
#define CORE_PRIVATE
#include "ap_config.h"
#include "apr.h"
#include "apr_network_io.h"
#include "apr_strings.h"
+#include "apr_lib.h"
-#if APR_HAVE_STDIO_H
-#include <stdio.h>
-#endif
+#define APR_WANT_STDIO
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
#include "ap_config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
#include "httpd.h" /* for server_rec, conn_rec, etc. */
#include "http_log.h" /* for aplog_error */
#include "rfc1413.h"
* University of Illinois, Urbana-Champaign.
*/
+#include "apr.h"
#include "apr_strings.h"
#include "apr_portable.h"
+#include "apr_lib.h"
+
+#if APR_HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
#include "ap_config.h"
#include "httpd.h"
#include "http_log.h"
#include "mpm.h"
#include "scoreboard.h"
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
AP_DECLARE_DATA scoreboard *ap_scoreboard_image = NULL;
AP_DECLARE_DATA const char *ap_scoreboard_fname=NULL;
* #define DEBUG_CFG_LINES to trace every line read from the config files
*/
-#define CORE_PRIVATE
-
#include "apr.h"
#include "apr_strings.h"
+#include "apr_lib.h"
-#if APR_HAVE_STDIO_H
-#include <stdio.h> /* for EOF */
-#endif
-#if APR_HAVE_NETINET_IN_H
-#include <netinet/in.h>
+#define APR_WANT_STDIO
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
+#if APR_HAVE_UNISTD_H
+#include <unistd.h>
#endif
-#if APR_HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
+#if APR_HAVE_NETDB_H
+#include <netdb.h> /* for gethostbyname() */
#endif
+#define CORE_PRIVATE
+
#include "ap_config.h"
#include "apr_base64.h"
#include "httpd.h"
#include "http_config.h"
#include "util_ebcdic.h"
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#ifdef HAVE_NETDB_H
-#include <netdb.h>
-#endif
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
#ifdef HAVE_PWD_H
#include <pwd.h>
#endif
#ifdef HAVE_GRP_H
#include <grp.h>
#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
/* A bunch of functions in util.c scan strings looking for certain characters.
* To make that more efficient we encode a lookup table. The test_char_table
*
*/
+#include "apr.h"
+#include "apr_lib.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
+#if APR_HAVE_CTYPE_H
+#include <ctype.h>
+#endif
+
#define CORE_PRIVATE
#include "ap_config.h"
#include "util_date.h"
-#ifdef HAVE_CTYPE_H
-#include <ctype.h>
-#endif
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
/*
* Compare a string to a mask
* University of Illinois, Urbana-Champaign.
*/
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#include "httpd.h"
#ifdef AP_DEBUG
# undef strchr
char *ap_strchr(char *s, int c)
-{ return strchr(s,c); }
+{
+ return strchr(s,c);
+}
const char *ap_strchr_c(const char *s, int c)
-{ return strchr(s,c); }
+{
+ return strchr(s,c);
+}
# undef strrchr
char *ap_strrchr(char *s, int c)
-{ return strrchr(s,c); }
+{
+ return strrchr(s,c);
+}
const char *ap_strrchr_c(const char *s, int c)
-{ return strrchr(s,c); }
+{
+ return strrchr(s,c);
+}
#undef strstr
char *ap_strstr(char *s, char *c)
-{ return strstr(s,c); }
+{
+ return strstr(s,c);
+}
const char *ap_strstr_c(const char *s, const char *c)
-{ return strstr(s,c); }
+{
+ return strstr(s,c);
+}
-#endif
+#endif /* AP_DEBUG */
* University of Illinois, Urbana-Champaign.
*/
+#include "apr.h"
+#include "apr_lib.h"
+#include "apr_strings.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
+#if APR_HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
#define CORE_PRIVATE
#include "ap_config.h"
-#include "apr_strings.h"
#include "httpd.h"
#include "http_config.h"
#include "http_main.h"
#include "util_script.h"
#include "util_date.h" /* For parseHTTPdate() */
#include "util_ebcdic.h"
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
#ifdef OS2
#define INCL_DOS
#include "apr.h"
#include "apr_strings.h"
-#if APR_HAVE_STDIO_H
-#include <stdio.h> /* for fprintf(), sprintf() */
-#endif
+#define APR_WANT_STDIO /* for fprintf(), sprintf() */
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
#include "httpd.h"
#include "http_protocol.h"
* (configuration and run-time)
*/
+#include "apr.h"
+#include "apr_strings.h"
+#include "apr_lib.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#define CORE_PRIVATE
#include "ap_config.h"
#include "httpd.h"
#include "http_vhost.h"
#include "http_protocol.h"
#include "http_core.h"
-#include "apr_strings.h"
-
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
-#ifdef HAVE_NETDB_H
-#include <netdb.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
/*
* After all the definitions there's an explanation of how it's all put