Mercurial > hg > nginx-quic
comparison src/core/ngx_file.h @ 155:46eb23d9471d
nginx-0.0.1-2003-10-22-20:38:26 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 22 Oct 2003 16:38:26 +0000 |
parents | 7ebc8b7fb816 |
children | e7e094d34162 |
comparison
equal
deleted
inserted
replaced
154:eac26585476e | 155:46eb23d9471d |
---|---|
32 int ngx_create_path(ngx_file_t *file, ngx_path_t *path); | 32 int ngx_create_path(ngx_file_t *file, ngx_path_t *path); |
33 | 33 |
34 void ngx_init_temp_number(); | 34 void ngx_init_temp_number(); |
35 int ngx_next_temp_number(int collision); | 35 int ngx_next_temp_number(int collision); |
36 | 36 |
37 char *ngx_conf_set_path_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | |
38 | |
39 | |
40 #define ngx_conf_merge_path_value(conf, prev, path, l1, l2, l3, pool) \ | |
41 if (conf == NULL) { \ | |
42 if (prev == NULL) { \ | |
43 ngx_test_null(conf, ngx_palloc(pool, sizeof(ngx_path_t)), NULL); \ | |
44 conf->name.len = sizeof(path) - 1; \ | |
45 conf->name.data = path; \ | |
46 conf->level[0] = l1; \ | |
47 conf->level[1] = l2; \ | |
48 conf->level[2] = l3; \ | |
49 conf->len = l1 + l2 + l3 + l1 ? 1:0 + l2 ? 1:0 + l3 ? 1:0; \ | |
50 } else { \ | |
51 conf = prev; \ | |
52 } \ | |
53 } | |
54 | |
55 | |
37 | 56 |
38 #endif /* _NGX_FILE_H_INCLUDED_ */ | 57 #endif /* _NGX_FILE_H_INCLUDED_ */ |