From af7a09a6874c0d6a6c37344c36da8e3bed782c9f Mon Sep 17 00:00:00 2001 From: tadf Date: Fri, 11 Mar 2011 16:27:25 +0000 Subject: [PATCH] * ext/date/date_core.c: changed some directives. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/date/date_core.c | 8 ++++---- ext/date/lib/date.rb | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8da7e015b3..c36ab072ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Mar 12 01:26:24 2011 Tadayoshi Funaba + + * ext/date/date_core.c: changed some directives. + Sat Mar 12 01:16:02 2011 Tadayoshi Funaba * ext/date/date_core.c, ext/date/lib/*: moved rdoc descriptions. diff --git a/ext/date/date_core.c b/ext/date/date_core.c index 9ca55b2802..9aebff1230 100644 --- a/ext/date/date_core.c +++ b/ext/date/date_core.c @@ -209,7 +209,7 @@ find_ldoy(int y, double sg, long *rjd, int *ns) return 0; } -#if 0 +#ifndef NDEBUG static int find_fdom(int y, int m, double sg, long *rjd, int *ns) { @@ -344,7 +344,7 @@ jd_to_commercial(long jd, double sg, int *ry, int *rw, int *rd) *rd = 7; } -#if 0 +#ifndef NDEBUG static void weeknum_to_jd(int y, int w, int d, int f, double sg, long *rjd, int *ns) { @@ -372,7 +372,7 @@ jd_to_weeknum(long jd, int f, double sg, int *ry, int *rw, int *rd) *rd = MOD(j, 7); } -#if 0 +#ifndef NDEBUG static void nth_kday_to_jd(int y, int m, int n, int k, double sg, long *rjd, int *ns) { @@ -392,7 +392,7 @@ nth_kday_to_jd(int y, int m, int n, int k, double sg, long *rjd, int *ns) } #endif -#if 0 +#ifndef NDEBUG inline static int jd_to_wday(long jd); static void diff --git a/ext/date/lib/date.rb b/ext/date/lib/date.rb index e48da79359..ed24532d51 100644 --- a/ext/date/lib/date.rb +++ b/ext/date/lib/date.rb @@ -1216,7 +1216,7 @@ class Date def new_start_r(sg=self.class::ITALY) self.class.new_r!(ajd, offset, sg) end # :nodoc: - private :start_r, :new_start_r + private :new_start_r # Create a copy of this Date object that uses the Italian/Catholic # Day of Calendar Reform.