aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_conf_file.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-12-09 15:08:11 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-12-09 15:08:11 +0000
commit2b58fbf045acee349c323de8f50501f94c41c04d (patch)
tree32c1e5848f1b0945dba64fa29e93bd328d71e146 /src/core/ngx_conf_file.h
parent5f80078c675bc344d12a6a64d97ecafb64de224b (diff)
downloadnginx-2b58fbf045acee349c323de8f50501f94c41c04d.tar.gz
nginx-2b58fbf045acee349c323de8f50501f94c41c04d.zip
nginx-0.0.1-2003-12-09-18:08:11 import
Diffstat (limited to 'src/core/ngx_conf_file.h')
-rw-r--r--src/core/ngx_conf_file.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/ngx_conf_file.h b/src/core/ngx_conf_file.h
index eb5478e61..eb9e63b51 100644
--- a/src/core/ngx_conf_file.h
+++ b/src/core/ngx_conf_file.h
@@ -179,6 +179,11 @@ char *ngx_conf_check_num_bounds(ngx_conf_t *cf, void *post, void *data);
conf = default; \
}
+#define ngx_conf_init_ptr_value(conf, default) \
+ if (conf == (void *) NGX_CONF_UNSET) { \
+ conf = default; \
+ }
+
#define ngx_conf_init_unsigned_value(conf, default) \
if (conf == (unsigned) NGX_CONF_UNSET) { \
conf = default; \