Skip to content

Commit

Permalink
Adjust format [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 18, 2022
1 parent d152749 commit 71c35b4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions ext/date/date_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 71c35b4

Please sign in to comment.