sniper Mon Feb 3 04:55:09 2003 EDT Modified files: /php4/ext/calendar calendar.c Log: ws Index: php4/ext/calendar/calendar.c diff -u php4/ext/calendar/calendar.c:1.35 php4/ext/calendar/calendar.c:1.36 --- php4/ext/calendar/calendar.c:1.35 Tue Dec 31 11:06:15 2002 +++ php4/ext/calendar/calendar.c Mon Feb 3 04:55:09 2003 @@ -18,7 +18,7 @@ | Wez Furlong <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: calendar.c,v 1.35 2002/12/31 16:06:15 sebastian Exp $ */ +/* $Id: calendar.c,v 1.36 2003/02/03 09:55:09 sniper Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -74,6 +74,7 @@ #ifdef COMPILE_DL_CALENDAR ZEND_GET_MODULE(calendar) #endif + /* this order must match the conversion table below */ enum cal_name_type_t { CAL_GREGORIAN = 0, @@ -82,6 +83,7 @@ CAL_FRENCH, CAL_NUM_CALS }; + typedef long int (*cal_to_jd_func_t) (int month, int day, int year); typedef void (*cal_from_jd_func_t) (long int jd, int *year, int *month, int *day); typedef char *(*cal_as_string_func_t) (int year, int month, int day); @@ -96,6 +98,7 @@ char **month_name_short; char **month_name_long; }; + static struct cal_entry_t cal_conversion_table[CAL_NUM_CALS] = { {"Gregorian", "CAL_GREGORIAN", GregorianToSdn, SdnToGregorian, 12, 31, MonthNameShort, MonthNameLong}, @@ -109,6 +112,7 @@ /* For jddayofweek */ enum { CAL_DOW_DAYNO, CAL_DOW_SHORT, CAL_DOW_LONG }; + /* For jdmonthname */ enum { CAL_MONTH_GREGORIAN_SHORT, CAL_MONTH_GREGORIAN_LONG, CAL_MONTH_JULIAN_SHORT, CAL_MONTH_JULIAN_LONG, CAL_MONTH_JEWISH,
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php