[nginx] svn commit: r5126 - trunk/src/core
ru at nginx.com
ru at nginx.com
Thu Mar 21 16:04:10 UTC 2013
Author: ru
Date: 2013-03-21 16:04:09 +0000 (Thu, 21 Mar 2013)
New Revision: 5126
URL: http://trac.nginx.org/nginx/changeset/5126/nginx
Log:
Moved ngx_array_t definition from ngx_core.h to ngx_array.h.
Modified:
trunk/src/core/ngx_array.h
trunk/src/core/ngx_core.h
Modified: trunk/src/core/ngx_array.h
===================================================================
--- trunk/src/core/ngx_array.h 2013-03-21 16:03:24 UTC (rev 5125)
+++ trunk/src/core/ngx_array.h 2013-03-21 16:04:09 UTC (rev 5126)
@@ -13,13 +13,13 @@
#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);
Modified: trunk/src/core/ngx_core.h
===================================================================
--- trunk/src/core/ngx_core.h 2013-03-21 16:03:24 UTC (rev 5125)
+++ trunk/src/core/ngx_core.h 2013-03-21 16:04:09 UTC (rev 5126)
@@ -15,7 +15,6 @@
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;
More information about the nginx-devel
mailing list