Mercurial > hg > nginx
diff src/core/ngx_conf_file.h @ 166:389d7ee9fa60
nginx-0.0.1-2003-10-30-11:51:06 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 30 Oct 2003 08:51:06 +0000 |
parents | d377ee423603 |
children | c42be4185301 |
line wrap: on
line diff
--- a/src/core/ngx_conf_file.h +++ b/src/core/ngx_conf_file.h @@ -150,6 +150,12 @@ typedef struct { } ngx_conf_num_bounds_t; +typedef struct { + ngx_str_t name; + int mask; +} ngx_conf_bitmask_t; + + char *ngx_conf_check_num_bounds(ngx_conf_t *cf, void *post, void *data); @@ -214,6 +220,11 @@ char *ngx_conf_check_num_bounds(ngx_conf } \ } +#define ngx_conf_merge_bitmask_value(conf, prev, default) \ + if (conf == 0) { \ + conf = (prev == 0) ? default : prev; \ + } + #define addressof(addr) ((int) &addr) @@ -233,6 +244,7 @@ char *ngx_conf_set_size_slot(ngx_conf_t char *ngx_conf_set_msec_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); char *ngx_conf_set_time_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); char *ngx_conf_set_bufs_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); +char *ngx_conf_set_bitmask_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); char *ngx_conf_set_core_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);