Skip to content

Commit 5248770

Browse files
committed
Fix style of recent fstring feature
1 parent 20a1c1d commit 5248770

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

string.c

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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 = {
557561
static VALUE fstring_table_obj;
558562

559563
static 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

Comments
 (0)