From a7031fe4fbf636a798d278930c9d7275a3338854 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 23 Feb 2022 21:17:44 -0800 Subject: [PATCH] cgraph: [nfc] reflow strcasecmp.h This was intended to be compliant when I wrote it, but apparently I erred. --- lib/cgraph/strcasecmp.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/cgraph/strcasecmp.h b/lib/cgraph/strcasecmp.h index f8e628385..c804379a1 100644 --- a/lib/cgraph/strcasecmp.h +++ b/lib/cgraph/strcasecmp.h @@ -1,28 +1,28 @@ -/* platform abstraction for case-insensitive string functions */ +// platform abstraction for case-insensitive string functions #pragma once #include #ifdef _MSC_VER - /* redirect these to the Windows alternatives */ +// redirect these to the Windows alternatives - #include +#include - // some third-party libraries like libgd provide their own macro-based - // `strcasecmp` shim, so only define our own if their’s is not in scope +// some third-party libraries like libgd provide their own macro-based +// `strcasecmp` shim, so only define our own if their’s is not in scope #ifndef strcasecmp - static inline int strcasecmp(const char *s1, const char *s2) { - return _stricmp(s1, s2); - } +static inline int strcasecmp(const char *s1, const char *s2) { + return _stricmp(s1, s2); +} #endif - static inline int strncasecmp(const char *s1, const char *s2, size_t n) { - return _strnicmp(s1, s2, n); - } +static inline int strncasecmp(const char *s1, const char *s2, size_t n) { + return _strnicmp(s1, s2, n); +} #else - /* other platforms define these in strings.h */ - #include +// other platforms define these in strings.h +#include #endif -- 2.40.0