From e4aabac04e078f07dce73e90847ef02d74facbe2 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 14 Oct 2003 15:06:38 +0000 Subject: nginx-0.0.1-2003-10-14-19:06:38 import --- src/core/ngx_hunk.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core') diff --git a/src/core/ngx_hunk.h b/src/core/ngx_hunk.h index a5bdfcb38..a66d47610 100644 --- a/src/core/ngx_hunk.h +++ b/src/core/ngx_hunk.h @@ -85,6 +85,11 @@ typedef struct { (h->type == (h->type & (NGX_HUNK_FLUSH|NGX_HUNK_LAST))) +#define nxg_hunk_size(h) \ + (h->type & NGX_HUNK_IN_MEMORY) ? h->last - h->pos: \ + (size_t) h->file_last - h->file_pos + + ngx_hunk_t *ngx_create_temp_hunk(ngx_pool_t *pool, int size, int before, int after); -- cgit