Mercurial > hg > nginx
comparison src/core/ngx_array.h @ 5125:65b895cd0dfa
Moved ngx_array_t definition from ngx_core.h to ngx_array.h.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 21 Mar 2013 16:04:09 +0000 |
parents | d620f497c50f |
children |
comparison
equal
deleted
inserted
replaced
5124:5482671df278 | 5125:65b895cd0dfa |
---|---|
11 | 11 |
12 #include <ngx_config.h> | 12 #include <ngx_config.h> |
13 #include <ngx_core.h> | 13 #include <ngx_core.h> |
14 | 14 |
15 | 15 |
16 struct ngx_array_s { | 16 typedef struct { |
17 void *elts; | 17 void *elts; |
18 ngx_uint_t nelts; | 18 ngx_uint_t nelts; |
19 size_t size; | 19 size_t size; |
20 ngx_uint_t nalloc; | 20 ngx_uint_t nalloc; |
21 ngx_pool_t *pool; | 21 ngx_pool_t *pool; |
22 }; | 22 } ngx_array_t; |
23 | 23 |
24 | 24 |
25 ngx_array_t *ngx_array_create(ngx_pool_t *p, ngx_uint_t n, size_t size); | 25 ngx_array_t *ngx_array_create(ngx_pool_t *p, ngx_uint_t n, size_t size); |
26 void ngx_array_destroy(ngx_array_t *a); | 26 void ngx_array_destroy(ngx_array_t *a); |
27 void *ngx_array_push(ngx_array_t *a); | 27 void *ngx_array_push(ngx_array_t *a); |