comparison src/core/ngx_hunk.h @ 4:c5f071d376e5

nginx-0.0.1-2002-08-22-19:24:03 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 22 Aug 2002 15:24:03 +0000
parents 34a521b1a148
children 669801705ab1
comparison
equal deleted inserted replaced
3:34a521b1a148 4:c5f071d376e5
55 struct ngx_chain_s { 55 struct ngx_chain_s {
56 ngx_hunk_t *hunk; 56 ngx_hunk_t *hunk;
57 ngx_chain_t *next; 57 ngx_chain_t *next;
58 }; 58 };
59 59
60 #define ngx_add_hunk_to_chain(chain, h, pool, error) \
61 do { \
62 ngx_test_null(chain, ngx_create_chain_entry(pool), error); \
63 chain->hunk = h; \
64 chain->next = NULL; \
65 } while (0);
66
67
60 68
61 ngx_hunk_t *ngx_get_hunk(ngx_pool_t *pool, int size, int before, int after); 69 ngx_hunk_t *ngx_get_hunk(ngx_pool_t *pool, int size, int before, int after);
62 70
63 71
64 #endif /* _NGX_CHUNK_H_INCLUDED_ */ 72 #endif /* _NGX_CHUNK_H_INCLUDED_ */