mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 09:58:03 +02:00
Don't force inline
This commit is contained in:
@@ -10,8 +10,10 @@ if [ -z "${CMAKE_BUILD_TYPE}" ]; then
|
||||
fi
|
||||
cmake "-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}" ..
|
||||
|
||||
if [ -z "$OSTYPE" ] || [ "$OSTYPE" = "linux-gnu" ]; then
|
||||
if [ -z "$OSTYPE" ] || [ "$OSTYPE" = "linux-gnu"* ]; then
|
||||
cmake_build_args="-j$(nproc)"
|
||||
elif [ "$OSTYPE" = "darwin"* ]; then
|
||||
cmake_build_args="-j$(sysctl -n hw.ncpu)"
|
||||
else
|
||||
cmake_build_args=""
|
||||
fi
|
||||
|
||||
@@ -21,10 +21,4 @@
|
||||
#define FF_C_SCANF(formatStrIndex, argsStartIndex)
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define FF_C_INLINE __attribute__((always_inline)) static inline
|
||||
#else
|
||||
#define FF_C_INLINE static inline
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
+4
-4
@@ -26,8 +26,8 @@ void ffStrbufInit(FFstrbuf* strbuf);
|
||||
void ffStrbufInitA(FFstrbuf* strbuf, uint32_t allocate);
|
||||
void ffStrbufInitCopy(FFstrbuf* strbuf, const FFstrbuf* src);
|
||||
|
||||
FF_C_INLINE void ffStrbufAppendS(FFstrbuf* strbuf, const char* value);
|
||||
FF_C_INLINE void ffStrbufInitS(FFstrbuf* strbuf, const char* str)
|
||||
static inline void ffStrbufAppendS(FFstrbuf* strbuf, const char* value);
|
||||
static inline void ffStrbufInitS(FFstrbuf* strbuf, const char* str)
|
||||
{
|
||||
ffStrbufInitA(strbuf, 0);
|
||||
ffStrbufAppendS(strbuf, str);
|
||||
@@ -46,7 +46,7 @@ void ffStrbufAppendC(FFstrbuf* strbuf, char c);
|
||||
|
||||
void ffStrbufAppendNS(FFstrbuf* strbuf, uint32_t length, const char* value);
|
||||
|
||||
FF_C_INLINE void ffStrbufAppendS(FFstrbuf* strbuf, const char* value)
|
||||
static inline void ffStrbufAppendS(FFstrbuf* strbuf, const char* value)
|
||||
{
|
||||
if(value == NULL)
|
||||
return;
|
||||
@@ -64,7 +64,7 @@ void ffStrbufPrependNS(FFstrbuf* strbuf, uint32_t length, const char* value);
|
||||
void ffStrbufSetNS(FFstrbuf* strbuf, uint32_t length, const char* value);
|
||||
void ffStrbufSet(FFstrbuf* strbuf, const FFstrbuf* value);
|
||||
|
||||
FF_C_INLINE void ffStrbufSetS(FFstrbuf* strbuf, const char* value)
|
||||
static inline void ffStrbufSetS(FFstrbuf* strbuf, const char* value)
|
||||
{
|
||||
ffStrbufClear(strbuf);
|
||||
ffStrbufAppendNS(strbuf, (uint32_t) strlen(value), value);
|
||||
|
||||
Reference in New Issue
Block a user