summaryrefslogtreecommitdiff
path: root/ext/date/date_core.c
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/date_core.c
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/date_core.c')
-rw-r--r--ext/date/date_core.c8
1 files changed, 4 insertions, 4 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