summaryrefslogtreecommitdiffstatsabout
path: root/apache13.h
diff options
context:
space:
mode:
Diffstat (limited to 'apache13.h')
-rw-r--r--apache13.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/apache13.h b/apache13.h
index 11e8dcb..6d756b6 100644
--- a/apache13.h
+++ b/apache13.h
@@ -1,4 +1,4 @@
1/* $Header: /home/cvs/mod_log_sql/apache13.h,v 1.5 2004/02/29 23:36:17 urkle Exp $ */ 1/* $Header: /home/cvs/mod_log_sql/apache13.h,v 1.6 2004/03/05 00:30:58 urkle Exp $ */
2#ifndef APACHE13_H 2#ifndef APACHE13_H
3#define APACHE13_H 3#define APACHE13_H
4 4
@@ -24,6 +24,9 @@
24/** method of declaring a directive which takes 1 argument */ 24/** method of declaring a directive which takes 1 argument */
25# define AP_INIT_TAKE1(directive, func, mconfig, where, help) \ 25# define AP_INIT_TAKE1(directive, func, mconfig, where, help) \
26 { directive, func, mconfig, where, TAKE1, help } 26 { directive, func, mconfig, where, TAKE1, help }
27/** method of declaring a directive which takes 2 argument */
28# define AP_INIT_TAKE2(directive, func, mconfig, where, help) \
29 { directive, func, mconfig, where, TAKE2, help }
27/** method of declaring a directive which takes multiple arguments */ 30/** method of declaring a directive which takes multiple arguments */
28# define AP_INIT_ITERATE(directive, func, mconfig, where, help) \ 31# define AP_INIT_ITERATE(directive, func, mconfig, where, help) \
29 { directive, func, mconfig, where, ITERATE, help } 32 { directive, func, mconfig, where, ITERATE, help }
@@ -37,6 +40,7 @@
37/* Types */ 40/* Types */
38#define apr_pool_t pool 41#define apr_pool_t pool
39#define apr_array_header_t array_header 42#define apr_array_header_t array_header
43#define apr_table_t table
40 44
41/* Functions */ 45/* Functions */
42#define ap_get_remote_host(a,b,c,d) ap_get_remote_host(a,b,c) 46#define ap_get_remote_host(a,b,c,d) ap_get_remote_host(a,b,c)
@@ -62,6 +66,16 @@
62 66
63#define apr_tolower ap_tolower 67#define apr_tolower ap_tolower
64 68
65#define log_error ap_log_error 69static void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...) __attribute__ ((format (printf, 5,6)));
70static inline void log_error(char *file, int line, int level, const server_rec *s, const char *fmt, ...)
71{
72 static char buff[MAX_STRING_LEN];
73 va_list args;
74 va_start(args, fmt);
75 ap_vsnprintf(buff,MAX_STRING_LEN, fmt,args);
76 ap_log_error(file,line,level | APLOG_NOERRNO ,s,"%s",buff);
77 va_end(args);
78}
79
66 80
67#endif /* APACHE13_H */ 81#endif /* APACHE13_H */