From: Matthew Fernandez Date: Thu, 24 Feb 2022 05:17:44 +0000 (-0800) Subject: cgraph: [nfc] reflow strcasecmp.h X-Git-Tag: 4.0.0~203^2~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7031fe4fbf636a798d278930c9d7275a3338854;p=graphviz cgraph: [nfc] reflow strcasecmp.h This was intended to be compliant when I wrote it, but apparently I erred. --- 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