Skip to content

Commit 007ded2

Browse files
Revert "Don't inline strbuf methods on macos"
This reverts commit c32f2f2.
1 parent c32f2f2 commit 007ded2

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

src/util/FFstrbuf.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -556,26 +556,3 @@ void ffStrbufDestroy(FFstrbuf* strbuf)
556556
free(strbuf->chars);
557557
strbuf->chars = NULL;
558558
}
559-
560-
#ifdef __APPLE__
561-
562-
void ffStrbufAppendS(FFstrbuf* strbuf, const char* value)
563-
{
564-
if(value == NULL)
565-
return;
566-
ffStrbufAppendNS(strbuf, (uint32_t) strlen(value), value);
567-
}
568-
569-
void ffStrbufSetS(FFstrbuf* strbuf, const char* value)
570-
{
571-
ffStrbufClear(strbuf);
572-
ffStrbufAppendNS(strbuf, (uint32_t) strlen(value), value);
573-
}
574-
575-
void ffStrbufInitS(FFstrbuf* strbuf, const char* str)
576-
{
577-
ffStrbufInitA(strbuf, 0);
578-
ffStrbufAppendS(strbuf, str);
579-
}
580-
581-
#endif

src/util/FFstrbuf.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,6 @@ FF_C_NODISCARD uint16_t ffStrbufToUInt16(const FFstrbuf* strbuf, uint16_t defaul
107107

108108
void ffStrbufDestroy(FFstrbuf* strbuf);
109109

110-
//Github actions on macos fails for whatever reason when inlining, so just don't do it.
111-
#ifdef __APPLE__
112-
113-
void ffStrbufAppendS(FFstrbuf* strbuf, const char* value);
114-
void ffStrbufSetS(FFstrbuf* strbuf, const char* value);
115-
void ffStrbufInitS(FFstrbuf* strbuf, const char* str);
116-
117-
#else
118-
119110
static inline void ffStrbufAppendS(FFstrbuf* strbuf, const char* value)
120111
{
121112
if(value == NULL)
@@ -136,5 +127,3 @@ static inline void ffStrbufInitS(FFstrbuf* strbuf, const char* str)
136127
}
137128

138129
#endif
139-
140-
#endif

0 commit comments

Comments
 (0)