summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_vector.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_vector.h')
-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)