summaryrefslogtreecommitdiff
path: root/ext/date
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-11 16:27:25 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-11 16:27:25 +0000
commitaf7a09a6874c0d6a6c37344c36da8e3bed782c9f (patch)
tree274e5323b94ba808aef81b080d0ed98cb3dae498 /ext/date
parente26e4b2cdf1c684b10f6620502b829390763f517 (diff)
* 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
Diffstat (limited to 'ext/date')
-rw-r--r--ext/date/date_core.c8
-rw-r--r--ext/date/lib/date.rb2
2 files changed, 5 insertions, 5 deletions
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.