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.