summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_array.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-06-20 19:49:17 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-06-20 19:49:17 +0300
commitf888a5310c1808902b4035ca3454b62bc5cf4434 (patch)
tree7425e11cdba27420d21468b0f79787834bd3c498 /src/nxt_array.h
parentc7ab908c19242a5ddd0233e123e8c2be210b3c02 (diff)
downloadunit-f888a5310c1808902b4035ca3454b62bc5cf4434.tar.gz
unit-f888a5310c1808902b4035ca3454b62bc5cf4434.tar.bz2
Using new memory pool implementation.
Diffstat (limited to 'src/nxt_array.h')
-rw-r--r--src/nxt_array.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nxt_array.h b/src/nxt_array.h
index 491572da..33e9807a 100644
--- a/src/nxt_array.h
+++ b/src/nxt_array.h
@@ -9,16 +9,16 @@
typedef struct {
- void *elts;
+ void *elts;
/* nelts has uint32_t type because it is used most often. */
- uint32_t nelts;
- uint16_t size;
- uint16_t nalloc;
- nxt_mem_pool_t *mem_pool;
+ uint32_t nelts;
+ uint16_t size;
+ uint16_t nalloc;
+ nxt_mp_t *mem_pool;
} nxt_array_t;
-NXT_EXPORT nxt_array_t *nxt_array_create(nxt_mem_pool_t *mp, nxt_uint_t n,
+NXT_EXPORT nxt_array_t *nxt_array_create(nxt_mp_t *mp, nxt_uint_t n,
size_t size);
NXT_EXPORT void *nxt_array_add(nxt_array_t *array);
NXT_EXPORT void *nxt_array_zero_add(nxt_array_t *array);