summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-06 01:40:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-06 01:40:04 +0000
commit33354d2928cbacac2b2560a1b4be5698b0f4a514 (patch)
tree6f97383413f6d7108a4db48b142e400674b2c268
parent7a0a58544452e6e01cf2ec87f83e7080d229dad5 (diff)
Prefixed reset_leap_second_info
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/-test-/time/leap_second.c2
-rw-r--r--internal.h2
-rw-r--r--time.c3
3 files changed, 4 insertions, 3 deletions
diff --git a/ext/-test-/time/leap_second.c b/ext/-test-/time/leap_second.c
index 214afe2b6b..8989f7952f 100644
--- a/ext/-test-/time/leap_second.c
+++ b/ext/-test-/time/leap_second.c
@@ -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)
{
diff --git a/internal.h b/internal.h
index fb7679eace..2d71eb178f 100644
--- a/internal.h
+++ b/internal.h
@@ -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[];
diff --git a/time.c b/time.c
index 20a514e2dc..10ec0f2a36 100644
--- a/time.c
+++ b/time.c
@@ -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;
}