aboutsummaryrefslogtreecommitdiff
path: root/stdlib/patterns.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-29 23:14:31 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-29 23:14:31 -0400
commit9ebb039a81f5ea06e97d84ef7ee447da9dfca204 (patch)
treedc229247feb19ddec117e3c680dd1c13a40dbdd1 /stdlib/patterns.c
parent3e019df9f429caef4b05947cc70652634ebb2467 (diff)
Fix up some GCC compiler flag options for LTO and inlining
Diffstat (limited to 'stdlib/patterns.c')
-rw-r--r--stdlib/patterns.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/patterns.c b/stdlib/patterns.c
index 6acb58a2..b8f204f4 100644
--- a/stdlib/patterns.c
+++ b/stdlib/patterns.c
@@ -33,7 +33,7 @@ typedef struct {
};
} pat_t;
-static inline void skip_whitespace(TextIter_t *state, int64_t *i)
+static INLINE void skip_whitespace(TextIter_t *state, int64_t *i)
{
while (*i < state->text.length) {
int32_t grapheme = Text$get_grapheme_fast(state, *i);
@@ -43,7 +43,7 @@ static inline void skip_whitespace(TextIter_t *state, int64_t *i)
}
}
-static inline bool match_grapheme(TextIter_t *state, int64_t *i, int32_t grapheme)
+static INLINE bool match_grapheme(TextIter_t *state, int64_t *i, int32_t grapheme)
{
if (*i < state->text.length && Text$get_grapheme_fast(state, *i) == grapheme) {
*i += 1;
@@ -52,7 +52,7 @@ static inline bool match_grapheme(TextIter_t *state, int64_t *i, int32_t graphem
return false;
}
-static inline bool match_str(TextIter_t *state, int64_t *i, const char *str)
+static INLINE bool match_str(TextIter_t *state, int64_t *i, const char *str)
{
int64_t matched = 0;
while (matched[str]) {
@@ -64,7 +64,7 @@ static inline bool match_str(TextIter_t *state, int64_t *i, const char *str)
return true;
}
-static inline bool match_property(TextIter_t *state, int64_t *i, uc_property_t prop)
+static INLINE bool match_property(TextIter_t *state, int64_t *i, uc_property_t prop)
{
if (*i >= state->text.length) return false;
uint32_t grapheme = Text$get_main_grapheme_fast(state, *i);