From a473f6cbcce5fe68bf5038cab79170a4e165b9e6 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Tue, 1 Jun 2021 10:21:08 -0400 Subject: [PATCH] argpar.h: move argpar_item_destroy() close to other item functions Signed-off-by: Philippe Proulx Change-Id: I444f39d5bbdc8498eaeff09c1b6c1f992bf36665 --- argpar/argpar.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/argpar/argpar.h b/argpar/argpar.h index 67056c3..9da99d3 100644 --- a/argpar/argpar.h +++ b/argpar/argpar.h @@ -188,6 +188,12 @@ unsigned int argpar_item_non_opt_orig_index(const struct argpar_item *item); ARGPAR_HIDDEN unsigned int argpar_item_non_opt_non_opt_index(const struct argpar_item *item); +/* + * Destroys `item`, as created by argpar_iter_next(). + */ +ARGPAR_HIDDEN +void argpar_item_destroy(const struct argpar_item *item); + struct argpar_item_array { const struct argpar_item **items; @@ -364,12 +370,6 @@ enum argpar_iter_next_status argpar_iter_next( ARGPAR_HIDDEN unsigned int argpar_iter_ingested_orig_args(const struct argpar_iter *iter); -/* - * Destroys `item`, as created by argpar_iter_next(). - */ -ARGPAR_HIDDEN -void argpar_item_destroy(const struct argpar_item *item); - /* * Destroys `_item` (`const struct argpar_item *`) and sets it to * `NULL`. -- 2.34.1