* <https://gcc.gnu.org/wiki/Visibility>.
*/
#if defined(_WIN32) || defined(__CYGWIN__)
-# define ARGPAR_HIDDEN
+#define ARGPAR_HIDDEN
#else
-# define ARGPAR_HIDDEN __attribute__((visibility("hidden")))
+#define ARGPAR_HIDDEN __attribute__((visibility("hidden")))
#endif
struct argpar_opt_descr;
/// @cond hidden_macro
ARGPAR_HIDDEN
/// @endcond
-const struct argpar_opt_descr *argpar_item_opt_descr(
- const struct argpar_item *item);
+const struct argpar_opt_descr *argpar_item_opt_descr(const struct argpar_item *item);
/*!
@brief
Item to destroy and variable to reset
(<code>const struct argpar_item *</code> type).
*/
-#define ARGPAR_ITEM_DESTROY_AND_RESET(_item) \
- { \
- argpar_item_destroy(_item); \
- ((_item)) = NULL; \
+#define ARGPAR_ITEM_DESTROY_AND_RESET(_item) \
+ { \
+ argpar_item_destroy(_item); \
+ ((_item)) = NULL; \
}
/// @}
/// @cond hidden_macro
ARGPAR_HIDDEN
/// @endcond
-const struct argpar_opt_descr *argpar_error_opt_descr(
- const struct argpar_error *error, bool *is_short);
+const struct argpar_opt_descr *argpar_error_opt_descr(const struct argpar_error *error,
+ bool *is_short);
/*!
@brief
const char short_name;
/// Long option name (without the <code>\--</code> prefix), or \c NULL
- const char * const long_name;
+ const char *const long_name;
/// \c true if this option has an argument
const bool with_arg;
};
@endcode
*/
-#define ARGPAR_OPT_DESCR_SENTINEL { -1, '\0', NULL, false }
+#define ARGPAR_OPT_DESCR_SENTINEL \
+ { \
+ -1, '\0', NULL, false \
+ }
/*!
@struct argpar_iter
ARGPAR_HIDDEN
/// @endcond
struct argpar_iter *argpar_iter_create(unsigned int argc,
- const char * const *argv,
- const struct argpar_opt_descr *descrs);
+ const char *const *argv,
+ const struct argpar_opt_descr *descrs);
/*!
@brief
/// @cond hidden_macro
ARGPAR_HIDDEN
/// @endcond
-enum argpar_iter_next_status argpar_iter_next(
- struct argpar_iter *iter, const struct argpar_item **item,
- const struct argpar_error **error);
+enum argpar_iter_next_status argpar_iter_next(struct argpar_iter *iter,
+ const struct argpar_item **item,
+ const struct argpar_error **error);
/*
* Returns the number of ingested elements from `argv`, as passed to