diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2002-08-22 15:24:03 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2002-08-22 15:24:03 +0000 |
| commit | 4e5e1171085a2235863baf7dddbd1477f817ae58 (patch) | |
| tree | 0cf794ff6076a6b545384ff46fa56ed85ac49b37 /src/core/ngx_hunk.h | |
| parent | 2b54238a5f2edcca568c0676a779ef79ba152c91 (diff) | |
| download | nginx-4e5e1171085a2235863baf7dddbd1477f817ae58.tar.gz nginx-4e5e1171085a2235863baf7dddbd1477f817ae58.tar.bz2 | |
nginx-0.0.1-2002-08-22-19:24:03 import
Diffstat (limited to 'src/core/ngx_hunk.h')
| -rw-r--r-- | src/core/ngx_hunk.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/ngx_hunk.h b/src/core/ngx_hunk.h index 83523331d..36c36e8c9 100644 --- a/src/core/ngx_hunk.h +++ b/src/core/ngx_hunk.h @@ -57,6 +57,14 @@ struct ngx_chain_s { ngx_chain_t *next; }; +#define ngx_add_hunk_to_chain(chain, h, pool, error) \ + do { \ + ngx_test_null(chain, ngx_create_chain_entry(pool), error); \ + chain->hunk = h; \ + chain->next = NULL; \ + } while (0); + + ngx_hunk_t *ngx_get_hunk(ngx_pool_t *pool, int size, int before, int after); |
