]> git.kaiwu.me - nginx.git/commitdiff
Moved ngx_array_t definition from ngx_core.h to ngx_array.h.
authorRuslan Ermilov <ru@nginx.com>
Thu, 21 Mar 2013 16:04:09 +0000 (16:04 +0000)
committerRuslan Ermilov <ru@nginx.com>
Thu, 21 Mar 2013 16:04:09 +0000 (16:04 +0000)
src/core/ngx_array.h
src/core/ngx_core.h

index 6a60e3088dddb119b6d5362ddef986b76a0f87f5..a0f2a744021045ae8ac610bfa106bf414e08f7d1 100644 (file)
 #include <ngx_core.h>
 
 
-struct ngx_array_s {
+typedef struct {
     void        *elts;
     ngx_uint_t   nelts;
     size_t       size;
     ngx_uint_t   nalloc;
     ngx_pool_t  *pool;
-};
+} ngx_array_t;
 
 
 ngx_array_t *ngx_array_create(ngx_pool_t *p, ngx_uint_t n, size_t size);
index bccc603417c86e35c6bf24c5bb87a34e04046c31..dfcf2d56cf8ba37ce1961de3adbf825c5f5adb9c 100644 (file)
@@ -15,7 +15,6 @@ typedef struct ngx_cycle_s       ngx_cycle_t;
 typedef struct ngx_pool_s        ngx_pool_t;
 typedef struct ngx_chain_s       ngx_chain_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_command_s     ngx_command_t;
 typedef struct ngx_file_s        ngx_file_t;