diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-10-22 16:38:26 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-10-22 16:38:26 +0000 |
commit | dc9dd434aa1cfd24a98265742ff0ed4aeefc1f05 (patch) | |
tree | ceedf7b247bf2d5291da9c0cc2243fd3c3e505a9 /src/core/ngx_file.h | |
parent | 5bf3d25d69ecdbccaa98beeb089a7a6850529b89 (diff) | |
download | nginx-dc9dd434aa1cfd24a98265742ff0ed4aeefc1f05.tar.gz nginx-dc9dd434aa1cfd24a98265742ff0ed4aeefc1f05.zip |
nginx-0.0.1-2003-10-22-20:38:26 import
Diffstat (limited to 'src/core/ngx_file.h')
-rw-r--r-- | src/core/ngx_file.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/core/ngx_file.h b/src/core/ngx_file.h index 6f521c251..ef3f78327 100644 --- a/src/core/ngx_file.h +++ b/src/core/ngx_file.h @@ -34,5 +34,24 @@ int ngx_create_path(ngx_file_t *file, ngx_path_t *path); void ngx_init_temp_number(); int ngx_next_temp_number(int collision); +char *ngx_conf_set_path_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); + + +#define ngx_conf_merge_path_value(conf, prev, path, l1, l2, l3, pool) \ + if (conf == NULL) { \ + if (prev == NULL) { \ + ngx_test_null(conf, ngx_palloc(pool, sizeof(ngx_path_t)), NULL); \ + conf->name.len = sizeof(path) - 1; \ + conf->name.data = path; \ + conf->level[0] = l1; \ + conf->level[1] = l2; \ + conf->level[2] = l3; \ + conf->len = l1 + l2 + l3 + l1 ? 1:0 + l2 ? 1:0 + l3 ? 1:0; \ + } else { \ + conf = prev; \ + } \ + } + + #endif /* _NGX_FILE_H_INCLUDED_ */ |