aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_conf_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_conf_file.h')
-rw-r--r--src/core/ngx_conf_file.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/ngx_conf_file.h b/src/core/ngx_conf_file.h
index de85a74c8..9573ab9f2 100644
--- a/src/core/ngx_conf_file.h
+++ b/src/core/ngx_conf_file.h
@@ -83,6 +83,12 @@ struct ngx_conf_s {
}
+#define ngx_conf_size_merge(conf, prev, default) \
+ if (conf == (size_t) NGX_CONF_UNSET) { \
+ conf = (prev == (size_t) NGX_CONF_UNSET) ? default : prev; \
+ }
+
+
char *ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename);
@@ -95,4 +101,4 @@ char *ngx_conf_set_time_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf);
extern ngx_module_t *ngx_modules[];
-#endif _NGX_HTTP_CONF_FILE_H_INCLUDED_
+#endif /* _NGX_HTTP_CONF_FILE_H_INCLUDED_ */