aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-10-13 16:32:29 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-10-13 16:32:29 +0000
commit913d0d4de7946c6220d44d0afe40fffda54b342e (patch)
tree64bd362b2fbc99cae42eff332307987288ce63be /src/core
parent0a280a3fc081877bc45cbdc0511a8cc42675213c (diff)
downloadnginx-913d0d4de7946c6220d44d0afe40fffda54b342e.tar.gz
nginx-913d0d4de7946c6220d44d0afe40fffda54b342e.zip
nginx-0.0.1-2003-10-13-20:32:29 import
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ngx_hunk.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/ngx_hunk.h b/src/core/ngx_hunk.h
index ef47508bb..a5bdfcb38 100644
--- a/src/core/ngx_hunk.h
+++ b/src/core/ngx_hunk.h
@@ -100,6 +100,19 @@ ngx_hunk_t *ngx_create_temp_hunk(ngx_pool_t *pool, int size,
chain->next = NULL; \
} while (0);
+#define ngx_alloc_ce_and_set_hunk ngx_add_hunk_to_chain
+
+
+#define ngx_chain_add_ce(ngx_chain_t *chain, ngx_chain_t **last, \
+ ngx_chain_t *ce) \
+ if (chain) { \
+ last->next = ce; \
+ } else { \
+ chain = ce; \
+ } \
+ last = ce;
+
+
int ngx_chain_add_copy(ngx_pool_t *pool, ngx_chain_t **ch, ngx_chain_t *in);
void ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy,
ngx_chain_t **out);