Mercurial > hg > nginx
comparison src/core/ngx_list.h @ 416:b9bd635011de
nginx-0.0.10-2004-09-06-22:45:00 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 06 Sep 2004 18:45:00 +0000 |
parents | 3c56e834be46 |
children | da8c5707af39 |
comparison
equal
deleted
inserted
replaced
415:3c56e834be46 | 416:b9bd635011de |
---|---|
22 ngx_uint_t nalloc; | 22 ngx_uint_t nalloc; |
23 ngx_pool_t *pool; | 23 ngx_pool_t *pool; |
24 } ngx_list_t; | 24 } ngx_list_t; |
25 | 25 |
26 | 26 |
27 ngx_inline static ngx_int_t ngx_init_list(ngx_list_t *list, ngx_pool_t *pool, | 27 ngx_inline static ngx_int_t ngx_list_init(ngx_list_t *list, ngx_pool_t *pool, |
28 ngx_uint_t n, size_t size) | 28 ngx_uint_t n, size_t size) |
29 { | 29 { |
30 if (!(list->part.elts = ngx_palloc(pool, n * size))) { | 30 if (!(list->part.elts = ngx_palloc(pool, n * size))) { |
31 return NGX_ERROR; | 31 return NGX_ERROR; |
32 } | 32 } |
65 * | 65 * |
66 * } | 66 * } |
67 */ | 67 */ |
68 | 68 |
69 | 69 |
70 void *ngx_push_list(ngx_list_t *list); | 70 void *ngx_list_push(ngx_list_t *list); |
71 | 71 |
72 | 72 |
73 #endif /* _NGX_LIST_H_INCLUDED_ */ | 73 #endif /* _NGX_LIST_H_INCLUDED_ */ |