comparison src/core/ngx_hunk.h @ 142:cb77c084acdb

nginx-0.0.1-2003-10-09-11:00:45 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 09 Oct 2003 07:00:45 +0000
parents 656d468f4ead
children 58557d0cccd1
comparison
equal deleted inserted replaced
141:656d468f4ead 142:cb77c084acdb
73 #define NGX_CHAIN_ERROR (ngx_chain_t *) NGX_ERROR 73 #define NGX_CHAIN_ERROR (ngx_chain_t *) NGX_ERROR
74 74
75 75
76 #define ngx_hunk_in_memory_only(h) \ 76 #define ngx_hunk_in_memory_only(h) \
77 ((h->type & (NGX_HUNK_IN_MEMORY|NGX_HUNK_FILE)) == NGX_HUNK_IN_MEMORY) 77 ((h->type & (NGX_HUNK_IN_MEMORY|NGX_HUNK_FILE)) == NGX_HUNK_IN_MEMORY)
78 /*
79 ((h->type & (NGX_HUNK_TEMP|NGX_HUNK_MEMORY|NGX_HUNK_MMAP|NGX_HUNK_FILE)) \
80 == (h->type & (NGX_HUNK_TEMP|NGX_HUNK_MEMORY|NGX_HUNK_MMAP)))
81
82 */
83
84 #define ngx_hunk_special(h) \
85 (h->type == (h->type & (NGX_HUNK_FLUSH|NGX_HUNK_LAST)))
78 86
79 87
80 ngx_hunk_t *ngx_create_temp_hunk(ngx_pool_t *pool, int size, 88 ngx_hunk_t *ngx_create_temp_hunk(ngx_pool_t *pool, int size,
81 int before, int after); 89 int before, int after);
82 90