@@ -586,7 +586,8 @@ static inline unsigned char search_ascii_only_escape(search_state *search, const
586586 return 0 ;
587587}
588588
589- static inline void full_escape_UTF8_char (search_state * search , unsigned char ch_len ) {
589+ static inline void full_escape_UTF8_char (search_state * search , unsigned char ch_len )
590+ {
590591 const unsigned char ch = (unsigned char )* search -> ptr ;
591592 switch (ch_len ) {
592593 case 1 : {
@@ -616,7 +617,7 @@ static inline void full_escape_UTF8_char(search_state *search, unsigned char ch_
616617
617618 uint32_t wchar = 0 ;
618619
619- switch (ch_len ) {
620+ switch (ch_len ) {
620621 case 2 :
621622 wchar = ch & 0x1F ;
622623 break ;
@@ -776,7 +777,8 @@ static VALUE mHash_to_json(int argc, VALUE *argv, VALUE self)
776777 * _state_ is a JSON::State object, that can also be used to configure the
777778 * produced JSON string output further.
778779 */
779- static VALUE mArray_to_json (int argc , VALUE * argv , VALUE self ) {
780+ static VALUE mArray_to_json (int argc , VALUE * argv , VALUE self )
781+ {
780782 rb_check_arity (argc , 0 , 1 );
781783 VALUE Vstate = cState_from_state_s (cState , argc == 1 ? argv [0 ] : Qnil );
782784 return cState_partial_generate (Vstate , self , generate_json_array , Qfalse );
@@ -838,7 +840,8 @@ static VALUE mFloat_to_json(int argc, VALUE *argv, VALUE self)
838840 *
839841 * Extends _modul_ with the String::Extend module.
840842 */
841- static VALUE mString_included_s (VALUE self , VALUE modul ) {
843+ static VALUE mString_included_s (VALUE self , VALUE modul )
844+ {
842845 VALUE result = rb_funcall (modul , i_extend , 1 , mString_Extend );
843846 rb_call_super (1 , & modul );
844847 return result ;
@@ -1083,7 +1086,7 @@ json_object_i(VALUE key, VALUE val, VALUE _arg)
10831086 }
10841087
10851088 VALUE key_to_s ;
1086- switch (rb_type (key )) {
1089+ switch (rb_type (key )) {
10871090 case T_STRING :
10881091 if (RB_LIKELY (RBASIC_CLASS (key ) == rb_cString )) {
10891092 key_to_s = key ;
@@ -1167,7 +1170,7 @@ static void generate_json_array(FBuffer *buffer, struct generate_json_data *data
11671170
11681171 fbuffer_append_char (buffer , '[' );
11691172 if (RB_UNLIKELY (data -> state -> array_nl )) fbuffer_append_str (buffer , data -> state -> array_nl );
1170- for (i = 0 ; i < RARRAY_LEN (obj ); i ++ ) {
1173+ for (i = 0 ; i < RARRAY_LEN (obj ); i ++ ) {
11711174 if (i > 0 ) {
11721175 fbuffer_append_char (buffer , ',' );
11731176 if (RB_UNLIKELY (data -> state -> array_nl )) fbuffer_append_str (buffer , data -> state -> array_nl );
@@ -1252,7 +1255,7 @@ static void generate_json_string(FBuffer *buffer, struct generate_json_data *dat
12521255 search .chunk_base = NULL ;
12531256#endif /* HAVE_SIMD */
12541257
1255- switch (rb_enc_str_coderange (obj )) {
1258+ switch (rb_enc_str_coderange (obj )) {
12561259 case ENC_CODERANGE_7BIT :
12571260 case ENC_CODERANGE_VALID :
12581261 if (RB_UNLIKELY (data -> state -> ascii_only )) {
@@ -2116,7 +2119,7 @@ void Init_generator(void)
21162119 rb_require ("json/ext/generator/state" );
21172120
21182121
2119- switch (find_simd_implementation ()) {
2122+ switch (find_simd_implementation ()) {
21202123#ifdef HAVE_SIMD
21212124#ifdef HAVE_SIMD_NEON
21222125 case SIMD_NEON :
0 commit comments