xref: /PHP-5.4/ext/calendar/php_calendar.h (revision ff087055)
1 #ifndef PHP_CALENDAR_H
2 #define PHP_CALENDAR_H
3 
4 extern zend_module_entry calendar_module_entry;
5 #define	calendar_module_ptr &calendar_module_entry
6 
7 /* Functions */
8 
9 PHP_MINIT_FUNCTION(calendar);
10 PHP_MINFO_FUNCTION(calendar);
11 
12 PHP_FUNCTION(jdtogregorian);
13 PHP_FUNCTION(gregoriantojd);
14 PHP_FUNCTION(jdtojulian);
15 PHP_FUNCTION(juliantojd);
16 PHP_FUNCTION(jdtojewish);
17 PHP_FUNCTION(jewishtojd);
18 PHP_FUNCTION(jdtofrench);
19 PHP_FUNCTION(frenchtojd);
20 PHP_FUNCTION(jddayofweek);
21 PHP_FUNCTION(jdmonthname);
22 PHP_FUNCTION(easter_days);
23 PHP_FUNCTION(easter_date);
24 PHP_FUNCTION(unixtojd);
25 PHP_FUNCTION(jdtounix);
26 PHP_FUNCTION(cal_from_jd);
27 PHP_FUNCTION(cal_to_jd);
28 PHP_FUNCTION(cal_days_in_month);
29 PHP_FUNCTION(cal_info);
30 
31 #define phpext_calendar_ptr calendar_module_ptr
32 
33 /*
34  * Specifying the easter calculation method
35  *
36  * DEFAULT is Anglican, ie. use Julian calendar before 1753
37  * and Gregorian after that. With ROMAN, the cutoff year is 1582.
38  * ALWAYS_GREGORIAN and ALWAYS_JULIAN force the calendar
39  * regardless of date.
40  *
41  */
42 
43 #define CAL_EASTER_DEFAULT			0
44 #define CAL_EASTER_ROMAN			1
45 #define CAL_EASTER_ALWAYS_GREGORIAN	2
46 #define CAL_EASTER_ALWAYS_JULIAN	3
47 
48 #endif
49