From 2cd6209dbabef44b7bebfb4f6b060774797549f6 Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Sun, 18 Aug 2024 01:54:36 +0100 Subject: [PATCH] Reformat spacing/comments in src/whereami.h --- src/whereami.h | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/whereami.h b/src/whereami.h index 0eabee7c..0b86c308 100644 --- a/src/whereami.h +++ b/src/whereami.h @@ -11,13 +11,14 @@ extern "C" { #endif #ifndef WAI_FUNCSPEC - #define WAI_FUNCSPEC +#define WAI_FUNCSPEC #endif + #ifndef WAI_PREFIX #define WAI_PREFIX(function) wai_##function #endif -/** +/* * Returns the path to the current executable. * * Usage: @@ -36,10 +37,9 @@ extern "C" { * @return the length of the executable path on success (without a terminal NUL * character), otherwise `-1` */ -WAI_FUNCSPEC -int WAI_PREFIX(getExecutablePath)(char* out, int capacity, int* dirname_length); + WAI_FUNCSPEC int WAI_PREFIX(getExecutablePath) (char *out, int capacity, int *dirname_length); -/** +/* * Returns the path to the current module * * Usage: @@ -57,11 +57,9 @@ int WAI_PREFIX(getExecutablePath)(char* out, int capacity, int* dirname_length); * @return the length of the module path on success (without a terminal NUL * character), otherwise `-1` */ -WAI_FUNCSPEC -int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length); + WAI_FUNCSPEC int WAI_PREFIX(getModulePath) (char *out, int capacity, int *dirname_length); #ifdef __cplusplus } #endif - -#endif // #ifndef WHEREAMI_H +#endif // #ifndef WHEREAMI_H