Mercurial > hg > nginx
comparison src/core/ngx_hunk.h @ 145:58557d0cccd1
nginx-0.0.1-2003-10-13-20:32:29 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 13 Oct 2003 16:32:29 +0000 |
parents | cb77c084acdb |
children | be71fca7f9d7 |
comparison
equal
deleted
inserted
replaced
144:ef8c87afcfc5 | 145:58557d0cccd1 |
---|---|
98 ngx_test_null(chain, ngx_alloc_chain_entry(pool), error); \ | 98 ngx_test_null(chain, ngx_alloc_chain_entry(pool), error); \ |
99 chain->hunk = h; \ | 99 chain->hunk = h; \ |
100 chain->next = NULL; \ | 100 chain->next = NULL; \ |
101 } while (0); | 101 } while (0); |
102 | 102 |
103 #define ngx_alloc_ce_and_set_hunk ngx_add_hunk_to_chain | |
104 | |
105 | |
106 #define ngx_chain_add_ce(ngx_chain_t *chain, ngx_chain_t **last, \ | |
107 ngx_chain_t *ce) \ | |
108 if (chain) { \ | |
109 last->next = ce; \ | |
110 } else { \ | |
111 chain = ce; \ | |
112 } \ | |
113 last = ce; | |
114 | |
115 | |
103 int ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **ch, ngx_chain_t *in); | 116 int ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **ch, ngx_chain_t *in); |
104 void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy, | 117 void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy, |
105 ngx_chain_t **out); | 118 ngx_chain_t **out); |
106 | 119 |
107 | 120 |