xref: /PHP-8.2/ext/calendar/php_calendar.h (revision 7c307873)
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 #include "php_version.h"
8 #define PHP_CALENDAR_VERSION PHP_VERSION
9 
10 /* Functions */
11 
12 PHP_MINIT_FUNCTION(calendar);
13 PHP_MINFO_FUNCTION(calendar);
14 
15 #define phpext_calendar_ptr calendar_module_ptr
16 
17 /*
18  * Specifying the easter calculation method
19  *
20  * DEFAULT is Anglican, ie. use Julian calendar before 1753
21  * and Gregorian after that. With ROMAN, the cutoff year is 1582.
22  * ALWAYS_GREGORIAN and ALWAYS_JULIAN force the calendar
23  * regardless of date.
24  *
25  */
26 
27 #define CAL_EASTER_DEFAULT			0
28 #define CAL_EASTER_ROMAN			1
29 #define CAL_EASTER_ALWAYS_GREGORIAN	2
30 #define CAL_EASTER_ALWAYS_JULIAN	3
31 
32 #endif
33