mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
Clean up some of the includes:
- explicitly include apr_lib.h since ap_config.h doesn't - use apr_want.h where possible - use APR_HAVE_ where possible - remove some unneeded includes git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88060 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -55,17 +55,18 @@
|
||||
#ifndef AP_FILTER_H
|
||||
#define AP_FILTER_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#include "apr.h"
|
||||
#include "apr_buckets.h"
|
||||
|
||||
#ifdef APR_HAVE_STDARG_H
|
||||
#include "httpd.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
|
||||
|
@@ -65,23 +65,22 @@
|
||||
|
||||
#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
|
||||
|
||||
|
@@ -70,9 +70,11 @@
|
||||
* 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"
|
||||
|
@@ -101,7 +101,6 @@
|
||||
#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"
|
||||
|
@@ -61,6 +61,9 @@
|
||||
#include "apr_file_io.h"
|
||||
#include "apr_uuid.h"
|
||||
|
||||
#define APR_WANT_MEMFUNC
|
||||
#include "apr_want.h"
|
||||
|
||||
#include "httpd.h"
|
||||
#include "http_log.h"
|
||||
|
||||
|
@@ -80,6 +80,11 @@
|
||||
** 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"
|
||||
@@ -88,7 +93,6 @@
|
||||
#include "http_protocol.h"
|
||||
#include "http_request.h"
|
||||
#include "util_script.h"
|
||||
#include "apr_strings.h"
|
||||
|
||||
#include "mod_dav.h"
|
||||
|
||||
|
@@ -57,6 +57,11 @@
|
||||
** - various utilities, repository-independent
|
||||
*/
|
||||
|
||||
#include "apr_strings.h"
|
||||
|
||||
#define APR_WANT_STRFUNC
|
||||
#include "apr_want.h"
|
||||
|
||||
#include "mod_dav.h"
|
||||
|
||||
#include "http_request.h"
|
||||
@@ -65,8 +70,6 @@
|
||||
#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)
|
||||
{
|
||||
|
@@ -69,6 +69,7 @@
|
||||
#include "apr_thread_proc.h"
|
||||
#include "apr_hash.h"
|
||||
#include "apr_user.h"
|
||||
#include "apr_lib.h"
|
||||
|
||||
#define CORE_PRIVATE
|
||||
|
||||
|
@@ -64,9 +64,17 @@
|
||||
*
|
||||
* 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"
|
||||
@@ -76,14 +84,7 @@
|
||||
#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;
|
||||
|
||||
|
@@ -66,16 +66,13 @@
|
||||
#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"
|
||||
@@ -94,7 +91,10 @@
|
||||
|
||||
#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
|
||||
|
||||
|
@@ -70,6 +70,9 @@
|
||||
#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"
|
||||
@@ -84,7 +87,7 @@
|
||||
|
||||
#include "mod_core.h"
|
||||
|
||||
#ifdef APR_HAVE_STDARG_H
|
||||
#if APR_HAVE_STDARG_H
|
||||
#include <stdarg.h>
|
||||
#endif
|
||||
|
||||
|
@@ -179,24 +179,27 @@
|
||||
*
|
||||
* --- 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;
|
||||
|
||||
|
@@ -65,13 +65,16 @@
|
||||
*/
|
||||
|
||||
#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;
|
||||
|
@@ -94,10 +94,11 @@
|
||||
|
||||
#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"
|
||||
@@ -108,12 +109,7 @@
|
||||
#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
|
||||
|
@@ -66,10 +66,11 @@
|
||||
#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"
|
||||
@@ -79,12 +80,7 @@
|
||||
#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"
|
||||
|
||||
|
@@ -88,6 +88,22 @@
|
||||
** 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"
|
||||
@@ -96,30 +112,11 @@
|
||||
#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
|
||||
|
||||
/*
|
||||
** +-------------------------------------------------------+
|
||||
** | |
|
||||
|
@@ -56,8 +56,8 @@
|
||||
* University of Illinois, Urbana-Champaign.
|
||||
*/
|
||||
|
||||
#ifndef _MOD_REWRITE_H
|
||||
#define _MOD_REWRITE_H 1
|
||||
#ifndef MOD_REWRITE_H
|
||||
#define MOD_REWRITE_H 1
|
||||
|
||||
/*
|
||||
** _ _ _
|
||||
@@ -92,29 +92,31 @@
|
||||
** 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
|
||||
#if APR_HAVE_CTYPE_H
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
#if APR_HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#include "ap_config.h"
|
||||
|
||||
#ifdef HAVE_TIME_H
|
||||
#include <time.h>
|
||||
#endif
|
||||
#ifdef HAVE_CTYPE_H
|
||||
#include <ctype.h>
|
||||
#endif
|
||||
#ifndef NETWARE
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
/* are these needed anymore? rbb */
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
|
||||
/* Include from the Apache server ... */
|
||||
#define CORE_PRIVATE
|
||||
@@ -472,6 +474,4 @@ static int compare_lexicography(char *cpNum1, char *cpNum2);
|
||||
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 */
|
||||
|
18
server/log.c
18
server/log.c
@@ -68,13 +68,18 @@
|
||||
#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
|
||||
|
||||
@@ -85,13 +90,6 @@
|
||||
#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;
|
||||
|
@@ -60,10 +60,10 @@
|
||||
#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"
|
||||
|
@@ -82,17 +82,13 @@
|
||||
#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"
|
||||
|
@@ -56,8 +56,15 @@
|
||||
* 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"
|
||||
@@ -67,9 +74,6 @@
|
||||
|
||||
#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;
|
||||
|
@@ -69,21 +69,23 @@
|
||||
* #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 */
|
||||
#define APR_WANT_STDIO
|
||||
#define APR_WANT_STRFUNC
|
||||
#include "apr_want.h"
|
||||
|
||||
#if APR_HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#if APR_HAVE_NETINET_IN_H
|
||||
#include <netinet/in.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"
|
||||
@@ -93,24 +95,12 @@
|
||||
#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
|
||||
|
@@ -67,16 +67,20 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#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
|
||||
|
@@ -56,31 +56,46 @@
|
||||
* 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 */
|
||||
|
@@ -56,9 +56,19 @@
|
||||
* 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"
|
||||
@@ -69,18 +79,6 @@
|
||||
#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
|
||||
|
@@ -63,9 +63,9 @@
|
||||
#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"
|
||||
|
@@ -61,6 +61,13 @@
|
||||
* (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"
|
||||
@@ -69,23 +76,6 @@
|
||||
#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
|
||||
|
Reference in New Issue
Block a user