1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Prefixed reset_leap_second_info

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-07-06 01:40:04 +00:00
parent 7a0a585444
commit 33354d2928
3 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,6 @@
#include "ruby.h"
void reset_leap_second_info(void);
void ruby_reset_leap_second_info(void);
static VALUE
bug_time_s_reset_leap_second_info(VALUE klass)
{

View file

@ -2057,7 +2057,7 @@ VALUE rb_str_upto_endless_each(VALUE, int (*each)(VALUE, VALUE), VALUE);
int ruby_thread_has_gvl_p(void); /* for ext/fiddle/closure.c */
/* time.c (export) */
void reset_leap_second_info(void);
void ruby_reset_leap_second_info(void);
/* util.c (export) */
extern const signed char ruby_digit36_to_number_table[];

3
time.c
View file

@ -1099,7 +1099,8 @@ init_leap_second_info(void)
}
/* Use this if you want to re-run init_leap_second_info() */
void reset_leap_second_info(void)
void
ruby_reset_leap_second_info(void)
{
this_year = 0;
}