From: Sebastian Bergmann Date: Sat, 2 Feb 2002 19:27:33 +0000 (+0000) Subject: Fix a warning. X-Git-Tag: PRE_ISSET_PATCH~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a2f0316e162f956fa798f5a154bb1308a5f7519;p=php Fix a warning. --- 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); } /*