diff options
| author | Maciej Mensfeld <maciej@mensfeld.pl> | 2025-12-18 10:38:51 +0100 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-12-26 11:00:51 +0900 |
| commit | ea03f263b51cfae3163e19dad5800c3a54d7cd1c (patch) | |
| tree | e8a6215ca4992cf09f6017dae40c22fe0bb6e379 /ext | |
| parent | f09e35ee4a5283c1b6185383f9b89eb4caf99868 (diff) | |
[ruby/date] improve styling
https://github.com/ruby/date/commit/cd7a329dfd
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/date/date_core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/date/date_core.c b/ext/date/date_core.c index e19248717b..e055db9fa6 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -456,10 +456,10 @@ static int c_valid_civil_p(int, int, int, double, /* Forward declarations for Neri-Schneider optimized functions */ static int c_gregorian_civil_to_jd(int y, int m, int d); static void c_gregorian_jd_to_civil(int jd, int *ry, int *rm, int *rd); -inline static int c_gregorian_fdoy(int y); -inline static int c_gregorian_ldoy(int y); -inline static int c_gregorian_ldom_jd(int y, int m); -inline static int ns_jd_in_range(int jd); +static int c_gregorian_fdoy(int y); +static int c_gregorian_ldoy(int y); +static int c_gregorian_ldom_jd(int y, int m); +static int ns_jd_in_range(int jd); static int c_find_fdoy(int y, double sg, int *rjd, int *ns) @@ -809,7 +809,7 @@ static int c_gregorian_civil_to_jd(int y, int m, int d) { /* Shift epoch to March 1 of year 0 (Jan/Feb belong to previous year) */ - int j = (m < 3) ? 1 : 0; + int j = (m < 3) ? 1 : 0; int y0 = y - j; int m0 = j ? m + 12 : m; int d0 = d - 1; |
