Moved ngx_array_t definition from ngx_core.h to ngx_array.h.

This commit is contained in:
Ruslan Ermilov 2013-03-21 16:04:09 +00:00
parent 56fce56f4f
commit 64fe190fa0
2 changed files with 2 additions and 3 deletions

View File

@ -13,13 +13,13 @@
#include <ngx_core.h> #include <ngx_core.h>
struct ngx_array_s { typedef struct {
void *elts; void *elts;
ngx_uint_t nelts; ngx_uint_t nelts;
size_t size; size_t size;
ngx_uint_t nalloc; ngx_uint_t nalloc;
ngx_pool_t *pool; ngx_pool_t *pool;
}; } ngx_array_t;
ngx_array_t *ngx_array_create(ngx_pool_t *p, ngx_uint_t n, size_t size); ngx_array_t *ngx_array_create(ngx_pool_t *p, ngx_uint_t n, size_t size);

View File

@ -15,7 +15,6 @@ typedef struct ngx_cycle_s ngx_cycle_t;
typedef struct ngx_pool_s ngx_pool_t; typedef struct ngx_pool_s ngx_pool_t;
typedef struct ngx_chain_s ngx_chain_t; typedef struct ngx_chain_s ngx_chain_t;
typedef struct ngx_log_s ngx_log_t; typedef struct ngx_log_s ngx_log_t;
typedef struct ngx_array_s ngx_array_t;
typedef struct ngx_open_file_s ngx_open_file_t; typedef struct ngx_open_file_s ngx_open_file_t;
typedef struct ngx_command_s ngx_command_t; typedef struct ngx_command_s ngx_command_t;
typedef struct ngx_file_s ngx_file_t; typedef struct ngx_file_s ngx_file_t;