summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_vector.h
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2022-06-02 16:51:49 +0400
committerKonstantin Pavlov <thresh@nginx.com>2022-06-02 16:51:49 +0400
commitd9fddee1dbfc1f5d49c8f40386289d7188030952 (patch)
tree842a62b343ac33eba10e7a426a10b55bb1c46aed /src/nxt_vector.h
parent420395ee2e7cd464e157c49bea3d74f15bf25f30 (diff)
parent0d48fe73c4450901622373e35f6ff3a944ec13d6 (diff)
downloadunit-d9fddee1dbfc1f5d49c8f40386289d7188030952.tar.gz
unit-d9fddee1dbfc1f5d49c8f40386289d7188030952.tar.bz2
Merged with the default branch.1.27.0-1
Diffstat (limited to '')
-rw-r--r--src/nxt_vector.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/nxt_vector.h b/src/nxt_vector.h
index e8836dbf..dcac53d4 100644
--- a/src/nxt_vector.h
+++ b/src/nxt_vector.h
@@ -41,19 +41,16 @@ NXT_EXPORT void *nxt_vector_zero_add(nxt_vector_t *vector,
NXT_EXPORT void nxt_vector_remove(nxt_vector_t *vector, void *item);
-#define \
-nxt_vector_last(vector) \
+#define nxt_vector_last(vector) \
nxt_pointer_to((vector)->start, \
(vector)->item_size * ((vector)->items - 1))
-#define \
-nxt_vector_reset(vector) \
+#define nxt_vector_reset(vector) \
(vector)->items = 0;
-#define \
-nxt_vector_is_empty(vector) \
+#define nxt_vector_is_empty(vector) \
((vector)->items == 0)