Mercurial > hg > nginx
comparison src/core/ngx_table.h @ 19:d7908993fdeb
nginx-0.0.1-2002-12-02-19:09:40 import; resume after 2 months stall
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 02 Dec 2002 16:09:40 +0000 |
parents | |
children | 7ebc8b7fb816 |
comparison
equal
deleted
inserted
replaced
18:72ad26c77d2d | 19:d7908993fdeb |
---|---|
1 #ifndef _NGX_TABLE_H_INCLUDED_ | |
2 #define _NGX_TABLE_H_INCLUDED_ | |
3 | |
4 | |
5 #include <ngx_config.h> | |
6 #include <ngx_string.h> | |
7 #include <ngx_alloc.h> | |
8 #include <ngx_array.h> | |
9 | |
10 typedef ngx_array_t ngx_table_t; | |
11 | |
12 typedef struct { | |
13 ngx_str_t key; | |
14 ngx_str_t value; | |
15 } ngx_table_elt_t; | |
16 | |
17 #define ngx_create_table(p, n) ngx_create_array(p, n, 2 * sizeof(ngx_str_t)) | |
18 #define ngx_push_table(t) ngx_push_array(t) | |
19 | |
20 | |
21 #endif /* _NGX_TABLE_H_INCLUDED_ */ |