Mercurial > hg > nginx-quic
comparison src/core/ngx_conf_file.h @ 141:656d468f4ead
nginx-0.0.1-2003-10-08-19:32:54 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 08 Oct 2003 15:32:54 +0000 |
parents | cd54bcbaf3b5 |
children | 46eb23d9471d |
comparison
equal
deleted
inserted
replaced
140:e32405df0e77 | 141:656d468f4ead |
---|---|
173 conf.len = sizeof(default) - 1; \ | 173 conf.len = sizeof(default) - 1; \ |
174 conf.data = default; \ | 174 conf.data = default; \ |
175 } \ | 175 } \ |
176 } | 176 } |
177 | 177 |
178 #define ngx_conf_merge_bufs_value(conf, prev, default_num, default_size) \ | |
179 if (conf.num == 0) { \ | |
180 if (prev.num) { \ | |
181 conf.num = prev.num; \ | |
182 conf.size = prev.size; \ | |
183 } else { \ | |
184 conf.num = default_num; \ | |
185 conf.size = default_size; \ | |
186 } \ | |
187 } | |
188 | |
178 | 189 |
179 #define addressof(addr) ((int) &addr) | 190 #define addressof(addr) ((int) &addr) |
180 | 191 |
181 | 192 |
182 char *ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename); | 193 char *ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename); |
191 char *ngx_conf_set_str_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 202 char *ngx_conf_set_str_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
192 char *ngx_conf_set_num_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 203 char *ngx_conf_set_num_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
193 char *ngx_conf_set_size_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 204 char *ngx_conf_set_size_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
194 char *ngx_conf_set_msec_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 205 char *ngx_conf_set_msec_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
195 char *ngx_conf_set_time_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 206 char *ngx_conf_set_time_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
207 char *ngx_conf_set_bufs_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | |
196 | 208 |
197 char *ngx_conf_set_core_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd, | 209 char *ngx_conf_set_core_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd, |
198 void *conf); | 210 void *conf); |
199 | 211 |
200 | 212 |