diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-10-28 18:32:39 +0400 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-10-28 18:32:39 +0400 |
commit | 0593b63c6aba5c00d604847973438563108436f7 (patch) | |
tree | d3a1b24a64b240bffaa529015dfed7d877695084 /src/core/ngx_slab.c | |
parent | e6d99d831cf7a8eac1f554bf0a07d67664a3bb92 (diff) |
undo the previous wrong commit
Diffstat (limited to 'src/core/ngx_slab.c')
-rw-r--r-- | src/core/ngx_slab.c | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/src/core/ngx_slab.c b/src/core/ngx_slab.c index 44d31f538..7b23d3c14 100644 --- a/src/core/ngx_slab.c +++ b/src/core/ngx_slab.c @@ -4,41 +4,8 @@ */ -typedef struct ngx_slab_map_s ngx_slab_map_t; -struct ngx_http_slab_map_s { - uintptr_t mask; - ngx_slab_elt_t *next; -}; - - -typedef struct { - ngx_slab_elt_t *slabs; - - ngx_slab_elt_t *map; - size_t map_size; - - size_t size; - -} ngx_slab_t; - - -void * -ngx_slab_init(ngx_slab_pool_t *pool, size_t size) +void *ngx_slab_alloc(ngx_slab_pool_t *pool, size_t size) { - slab->map_size = (slab->size + ngx_pagesize - 1) - / (ngx_pagesize / sizeof(ngx_slab_map_t)); - - - return NULL; -} - - -void * -ngx_slab_alloc(ngx_slab_t *pool, size_t size) -{ - n = size - 1; - - - return NULL; + return NULL; } |