diff 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
line wrap: on
line diff
--- a/src/core/ngx_hunk.h
+++ b/src/core/ngx_hunk.h
@@ -100,6 +100,19 @@ ngx_hunk_t *ngx_create_temp_hunk(ngx_poo
                 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);