From c316a5f2f12fe5921baac50623ca789be490f657 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 18 Dec 2022 12:03:46 +0900 Subject: [ruby/date] Adjust format [ci skip] https://github.com/ruby/date/commit/71c35b4054 --- ext/date/date_core.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ext/date/date_core.c b/ext/date/date_core.c index fb974bd54e..21367c0ddf 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -64,7 +64,8 @@ static VALUE datetime_initialize(int argc, VALUE *argv, VALUE self); #define RETURN_FALSE_UNLESS_NUMERIC(obj) if(!RTEST(rb_obj_is_kind_of((obj), rb_cNumeric))) return Qfalse inline static void -check_numeric(VALUE obj, const char* field) { +check_numeric(VALUE obj, const char* field) +{ if(!RTEST(rb_obj_is_kind_of(obj, rb_cNumeric))) { rb_raise(rb_eTypeError, "invalid %s (not numeric)", field); } @@ -7437,7 +7438,8 @@ d_lite_jisx0301(VALUE self) } static VALUE -deconstruct_keys(VALUE self, VALUE keys, int is_datetime) { +deconstruct_keys(VALUE self, VALUE keys, int is_datetime) +{ VALUE h = rb_hash_new(); long i; @@ -7520,7 +7522,8 @@ deconstruct_keys(VALUE self, VALUE keys, int is_datetime) { * */ static VALUE -d_lite_deconstruct_keys(VALUE self, VALUE keys) { +d_lite_deconstruct_keys(VALUE self, VALUE keys) +{ return deconstruct_keys(self, keys, /* is_datetime=false */ 0); } @@ -8868,7 +8871,8 @@ dt_lite_jisx0301(int argc, VALUE *argv, VALUE self) * */ static VALUE -dt_lite_deconstruct_keys(VALUE self, VALUE keys) { +dt_lite_deconstruct_keys(VALUE self, VALUE keys) +{ return deconstruct_keys(self, keys, /* is_datetime=true */ 1); } -- cgit v1.2.3