summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@php.net>2002-02-02 19:27:33 +0000
committerSebastian Bergmann <sebastian@php.net>2002-02-02 19:27:33 +0000
commit4a2f0316e162f956fa798f5a154bb1308a5f7519 (patch)
tree48dc34bf482d3fa437db3aacfa808f65b78ef91d
parent86469a0dfb331c04cef7216b60644c61c12eba3e (diff)
downloadphp-git-4a2f0316e162f956fa798f5a154bb1308a5f7519.tar.gz
Fix a warning.
-rw-r--r--ext/calendar/gregor.c6
-rw-r--r--ext/calendar/jewish.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/ext/calendar/gregor.c b/ext/calendar/gregor.c
index ef0a01ea66..f48950901a 100644
--- a/ext/calendar/gregor.c
+++ b/ext/calendar/gregor.c
@@ -128,7 +128,7 @@
#include "sdncal.h"
-#define SDN_OFFSET 32045
+#define GREGOR_SDN_OFFSET 32045
#define DAYS_PER_5_MONTHS 153
#define DAYS_PER_4_YEARS 1461
#define DAYS_PER_400_YEARS 146097
@@ -152,7 +152,7 @@ void SdnToGregorian(
*pDay = 0;
return;
}
- temp = (sdn + SDN_OFFSET) * 4 - 1;
+ temp = (sdn + GREGOR_SDN_OFFSET) * 4 - 1;
/* Calculate the century (year/100). */
century = temp / DAYS_PER_400_YEARS;
@@ -227,7 +227,7 @@ long int GregorianToSdn(
+ ((year % 100) * DAYS_PER_4_YEARS) / 4
+ (month * DAYS_PER_5_MONTHS + 2) / 5
+ inputDay
- - SDN_OFFSET);
+ - GREGOR_SDN_OFFSET);
}
char *MonthNameShort[13] =
diff --git a/ext/calendar/jewish.c b/ext/calendar/jewish.c
index d93eb4c282..504f3c2d93 100644
--- a/ext/calendar/jewish.c
+++ b/ext/calendar/jewish.c
@@ -267,7 +267,7 @@
#define HALAKIM_PER_LUNAR_CYCLE ((29 * HALAKIM_PER_DAY) + 13753)
#define HALAKIM_PER_METONIC_CYCLE (HALAKIM_PER_LUNAR_CYCLE * (12 * 19 + 7))
-#define SDN_OFFSET 347997
+#define JEWISH_SDN_OFFSET 347997
#define NEW_MOON_OF_CREATION 31524
#define SUNDAY 0
@@ -497,13 +497,13 @@ void SdnToJewish(
int tishri1After;
int yearLength;
- if (sdn <= SDN_OFFSET) {
+ if (sdn <= JEWISH_SDN_OFFSET) {
*pYear = 0;
*pMonth = 0;
*pDay = 0;
return;
}
- inputDay = sdn - SDN_OFFSET;
+ inputDay = sdn - JEWISH_SDN_OFFSET;
FindTishriMolad(inputDay, &metonicCycle, &metonicYear, &day, &halakim);
tishri1 = Tishri1(metonicYear, day, halakim);
@@ -728,7 +728,7 @@ long int JewishToSdn(
return (0);
}
}
- return (sdn + SDN_OFFSET);
+ return (sdn + JEWISH_SDN_OFFSET);
}
/*