From: Philippe Proulx Date: Tue, 1 Jun 2021 14:21:08 +0000 (-0400) Subject: argpar.h: move argpar_item_destroy() close to other item functions X-Git-Url: http://git.efficios.com/?p=argpar.git;a=commitdiff_plain;h=a473f6cbcce5fe68bf5038cab79170a4e165b9e6 argpar.h: move argpar_item_destroy() close to other item functions Signed-off-by: Philippe Proulx Change-Id: I444f39d5bbdc8498eaeff09c1b6c1f992bf36665 --- 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`.