Mercurial > hg > nginx
comparison src/core/ngx_conf_file.h @ 64:34d647deb1da
nginx-0.0.1-2003-03-04-09:33:48 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 04 Mar 2003 06:33:48 +0000 |
parents | e8cdc2989cee |
children | 59229033ae93 |
comparison
equal
deleted
inserted
replaced
63:36d2c25cc9bb | 64:34d647deb1da |
---|---|
16 #define NGX_CONF_TAKE1 2 | 16 #define NGX_CONF_TAKE1 2 |
17 #define NGX_CONF_TAKE2 4 | 17 #define NGX_CONF_TAKE2 4 |
18 #define NGX_CONF_ARGS_NUMBER 0x00ffff | 18 #define NGX_CONF_ARGS_NUMBER 0x00ffff |
19 #define NGX_CONF_ANY 0x010000 | 19 #define NGX_CONF_ANY 0x010000 |
20 #define NGX_CONF_BLOCK 0x020000 | 20 #define NGX_CONF_BLOCK 0x020000 |
21 #define NGX_CONF_FLAG 0x040000 | |
21 | 22 |
22 | 23 |
23 #define NGX_CONF_UNSET -1 | 24 #define NGX_CONF_UNSET -1 |
24 | 25 |
25 | 26 |
87 if (conf == (size_t) NGX_CONF_UNSET) { \ | 88 if (conf == (size_t) NGX_CONF_UNSET) { \ |
88 conf = (prev == (size_t) NGX_CONF_UNSET) ? default : prev; \ | 89 conf = (prev == (size_t) NGX_CONF_UNSET) ? default : prev; \ |
89 } | 90 } |
90 | 91 |
91 | 92 |
93 #define addressof(addr) ((int) &addr) | |
94 | |
92 | 95 |
93 char *ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename); | 96 char *ngx_conf_parse(ngx_conf_t *cf, ngx_str_t *filename); |
94 | 97 |
95 | 98 |
99 char *ngx_conf_set_flag_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf); | |
96 char *ngx_conf_set_str_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf); | 100 char *ngx_conf_set_str_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf); |
97 char *ngx_conf_set_size_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf); | 101 char *ngx_conf_set_size_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf); |
98 char *ngx_conf_set_time_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf); | 102 char *ngx_conf_set_time_slot(ngx_conf_t *cf, ngx_command_t *cmd, char *conf); |
99 | 103 |
100 | 104 |