summaryrefslogtreecommitdiff
path: root/ext/calendar/jewish.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/calendar/jewish.c')
-rw-r--r--ext/calendar/jewish.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/ext/calendar/jewish.c b/ext/calendar/jewish.c
index ddc8aaaf86..83efb9949f 100644
--- a/ext/calendar/jewish.c
+++ b/ext/calendar/jewish.c
@@ -382,12 +382,12 @@ char *JewishMonthHebName[14] =
* (called dehiyyot) delays it. These 4 rules can delay the start of the
* year by as much as 2 days.
*/
-static long int Tishri1(
+static php_int_t Tishri1(
int metonicYear,
- long int moladDay,
- long int moladHalakim)
+ php_int_t moladDay,
+ php_int_t moladHalakim)
{
- long int tishri1;
+ php_int_t tishri1;
int dow;
int leapYear;
int lastWasLeapYear;
@@ -429,10 +429,10 @@ static long int Tishri1(
*/
static void MoladOfMetonicCycle(
int metonicCycle,
- long int *pMoladDay,
- long int *pMoladHalakim)
+ php_int_t *pMoladDay,
+ php_int_t *pMoladHalakim)
{
- register unsigned long int r1, r2, d1, d2;
+ register php_uint_t r1, r2, d1, d2;
/* Start with the time of the first molad after creation. */
r1 = NEW_MOON_OF_CREATION;
@@ -468,14 +468,14 @@ static void MoladOfMetonicCycle(
* us to avoid calculating the length of the year in most cases.
*/
static void FindTishriMolad(
- long int inputDay,
+ php_int_t inputDay,
int *pMetonicCycle,
int *pMetonicYear,
- long int *pMoladDay,
- long int *pMoladHalakim)
+ php_int_t *pMoladDay,
+ php_int_t *pMoladHalakim)
{
- long int moladDay;
- long int moladHalakim;
+ php_int_t moladDay;
+ php_int_t moladHalakim;
int metonicCycle;
int metonicYear;
@@ -523,8 +523,8 @@ static void FindStartOfYear(
int year,
int *pMetonicCycle,
int *pMetonicYear,
- long int *pMoladDay,
- long int *pMoladHalakim,
+ php_int_t *pMoladDay,
+ php_int_t *pMoladHalakim,
int *pTishri1)
{
*pMetonicCycle = (year - 1) / 19;
@@ -546,14 +546,14 @@ static void FindStartOfYear(
* range 1 to 13 inclusive; *pDay will be in the range 1 to 30 inclusive.
*/
void SdnToJewish(
- long int sdn,
+ php_int_t sdn,
int *pYear,
int *pMonth,
int *pDay)
{
- long int inputDay;
- long int day;
- long int halakim;
+ php_int_t inputDay;
+ php_int_t day;
+ php_int_t halakim;
int metonicCycle;
int metonicYear;
int tishri1;
@@ -684,18 +684,18 @@ void SdnToJewish(
* value. To verify that a date is valid, convert it to SDN and then back
* and compare with the original.
*/
-long int JewishToSdn(
+php_int_t JewishToSdn(
int year,
int month,
int day)
{
- long int sdn;
+ php_int_t sdn;
int metonicCycle;
int metonicYear;
int tishri1;
int tishri1After;
- long int moladDay;
- long int moladHalakim;
+ php_int_t moladDay;
+ php_int_t moladHalakim;
int yearLength;
int lengthOfAdarIAndII;