@@ -420,7 +420,9 @@ struct fstr_update_arg {
420420 bool force_precompute_hash ;
421421};
422422
423- static VALUE build_fstring (VALUE str , struct fstr_update_arg * arg ) {
423+ static VALUE
424+ build_fstring (VALUE str , struct fstr_update_arg * arg )
425+ {
424426 // Unless the string is empty or binary, its coderange has been precomputed.
425427 int coderange = ENC_CODERANGE (str );
426428
@@ -537,7 +539,9 @@ struct fstring_table_struct {
537539 rb_atomic_t count ; // TODO: pad to own cache line?
538540};
539541
540- static void fstring_table_free (void * ptr ) {
542+ static void
543+ fstring_table_free (void * ptr )
544+ {
541545 struct fstring_table_struct * table = ptr ;
542546 xfree (table -> entries );
543547}
@@ -557,7 +561,8 @@ static const rb_data_type_t fstring_table_type = {
557561static VALUE fstring_table_obj ;
558562
559563static VALUE
560- new_fstring_table (int capacity ) {
564+ new_fstring_table (int capacity )
565+ {
561566 VALUE obj ;
562567 struct fstring_table_struct * table ;
563568 obj = TypedData_Make_Struct (0 , struct fstring_table_struct , & fstring_table_type , table );
@@ -567,7 +572,9 @@ new_fstring_table(int capacity) {
567572 return obj ;
568573}
569574
570- void Init_fstring_table (void ) {
575+ void
576+ Init_fstring_table (void )
577+ {
571578 fstring_table_obj = new_fstring_table (8192 );
572579 rb_gc_register_address (& fstring_table_obj );
573580}
0 commit comments