@@ -88,7 +88,7 @@ static void rvalue_cache_insert_at(rvalue_cache *cache, int index, VALUE rstring
8888#if JSON_CPU_LITTLE_ENDIAN_64BITS
8989#if __has_builtin (__builtin_bswap64 )
9090#undef rstring_cache_memcmp
91- static ALWAYS_INLINE () int rstring_cache_memcmp (const char * str , const char * rptr , const long length )
91+ ALWAYS_INLINE (static ) int rstring_cache_memcmp (const char * str , const char * rptr , const long length )
9292{
9393 // The libc memcmp has numerous complex optimizations, but in this particular case,
9494 // we know the string is small (JSON_RVALUE_CACHE_MAX_ENTRY_LENGTH), so being able to
@@ -117,7 +117,7 @@ static ALWAYS_INLINE() int rstring_cache_memcmp(const char *str, const char *rpt
117117#endif
118118#endif
119119
120- static ALWAYS_INLINE () int rstring_cache_cmp (const char * str , const long length , VALUE rstring )
120+ ALWAYS_INLINE (static ) int rstring_cache_cmp (const char * str , const long length , VALUE rstring )
121121{
122122 const char * rstring_ptr ;
123123 long rstring_length ;
@@ -131,7 +131,7 @@ static ALWAYS_INLINE() int rstring_cache_cmp(const char *str, const long length,
131131 }
132132}
133133
134- static ALWAYS_INLINE () VALUE rstring_cache_fetch (rvalue_cache * cache , const char * str , const long length )
134+ ALWAYS_INLINE (static ) VALUE rstring_cache_fetch (rvalue_cache * cache , const char * str , const long length )
135135{
136136 int low = 0 ;
137137 int high = cache -> length - 1 ;
@@ -540,7 +540,7 @@ json_eat_comments(JSON_ParserState *state)
540540 }
541541}
542542
543- static ALWAYS_INLINE () void
543+ ALWAYS_INLINE (static ) void
544544json_eat_whitespace (JSON_ParserState * state )
545545{
546546 while (true) {
@@ -661,7 +661,7 @@ static inline const char *json_next_backslash(const char *pe, const char *string
661661 return NULL ;
662662}
663663
664- static NOINLINE () VALUE json_string_unescape (JSON_ParserState * state , JSON_ParserConfig * config , const char * string , const char * stringEnd , bool is_name , JSON_UnescapePositions * positions )
664+ NOINLINE (static ) VALUE json_string_unescape (JSON_ParserState * state , JSON_ParserConfig * config , const char * string , const char * stringEnd , bool is_name , JSON_UnescapePositions * positions )
665665{
666666 bool intern = is_name || config -> freeze ;
667667 bool symbolize = is_name && config -> symbolize_names ;
@@ -946,7 +946,7 @@ static const bool string_scan_table[256] = {
946946static SIMD_Implementation simd_impl = SIMD_NONE ;
947947#endif /* HAVE_SIMD */
948948
949- static ALWAYS_INLINE () bool string_scan (JSON_ParserState * state )
949+ ALWAYS_INLINE (static ) bool string_scan (JSON_ParserState * state )
950950{
951951#ifdef HAVE_SIMD
952952#if defined(HAVE_SIMD_NEON )
@@ -1015,7 +1015,7 @@ static VALUE json_parse_escaped_string(JSON_ParserState *state, JSON_ParserConfi
10151015 return Qfalse ;
10161016}
10171017
1018- static ALWAYS_INLINE () VALUE json_parse_string (JSON_ParserState * state , JSON_ParserConfig * config , bool is_name )
1018+ ALWAYS_INLINE (static ) VALUE json_parse_string (JSON_ParserState * state , JSON_ParserConfig * config , bool is_name )
10191019{
10201020 state -> cursor ++ ;
10211021 const char * start = state -> cursor ;
0 commit comments