Mercurial > hg > nginx
comparison src/core/ngx_hunk.h @ 194:2357fa41738a
nginx-0.0.1-2003-11-21-09:30:49 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 21 Nov 2003 06:30:49 +0000 |
parents | c42be4185301 |
children | 87e73f067470 |
comparison
equal
deleted
inserted
replaced
193:dd66383796a5 | 194:2357fa41738a |
---|---|
122 #define ngx_hunk_size(h) \ | 122 #define ngx_hunk_size(h) \ |
123 ((h->type & NGX_HUNK_IN_MEMORY) ? (size_t) (h->last - h->pos): \ | 123 ((h->type & NGX_HUNK_IN_MEMORY) ? (size_t) (h->last - h->pos): \ |
124 (size_t) (h->file_last - h->file_pos)) | 124 (size_t) (h->file_last - h->file_pos)) |
125 | 125 |
126 | 126 |
127 ngx_hunk_t *ngx_create_temp_hunk(ngx_pool_t *pool, int size); | 127 ngx_hunk_t *ngx_create_temp_hunk(ngx_pool_t *pool, size_t size); |
128 | 128 |
129 #define ngx_alloc_hunk(pool) ngx_palloc(pool, sizeof(ngx_hunk_t)) | 129 #define ngx_alloc_hunk(pool) ngx_palloc(pool, sizeof(ngx_hunk_t)) |
130 #define ngx_calloc_hunk(pool) ngx_pcalloc(pool, sizeof(ngx_hunk_t)) | 130 #define ngx_calloc_hunk(pool) ngx_pcalloc(pool, sizeof(ngx_hunk_t)) |
131 | 131 |
132 | 132 |