diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-12-18 12:03:46 +0900 |
---|---|---|
committer | git <[email protected]> | 2022-12-18 03:03:54 +0000 |
commit | c316a5f2f12fe5921baac50623ca789be490f657 (patch) | |
tree | 76690098ef9663a5616dd8dec3392c4af7c9e9e6 /ext/date/date_core.c | |
parent | b8cc0992c681de30d48e9c9bdb59721604c194b5 (diff) |
[ruby/date] Adjust format [ci skip]
https://github.com/ruby/date/commit/71c35b4054
Diffstat (limited to 'ext/date/date_core.c')
-rw-r--r-- | ext/date/date_core.c | 12 |
1 files 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); } |