php_calendar.h 746 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef PHP_CALENDAR_H
  2. #define PHP_CALENDAR_H
  3. extern zend_module_entry calendar_module_entry;
  4. #define calendar_module_ptr &calendar_module_entry
  5. #include "php_version.h"
  6. #define PHP_CALENDAR_VERSION PHP_VERSION
  7. /* Functions */
  8. PHP_MINIT_FUNCTION(calendar);
  9. PHP_MINFO_FUNCTION(calendar);
  10. #define phpext_calendar_ptr calendar_module_ptr
  11. /*
  12. * Specifying the easter calculation method
  13. *
  14. * DEFAULT is Anglican, ie. use Julian calendar before 1753
  15. * and Gregorian after that. With ROMAN, the cutoff year is 1582.
  16. * ALWAYS_GREGORIAN and ALWAYS_JULIAN force the calendar
  17. * regardless of date.
  18. *
  19. */
  20. #define CAL_EASTER_DEFAULT 0
  21. #define CAL_EASTER_ROMAN 1
  22. #define CAL_EASTER_ALWAYS_GREGORIAN 2
  23. #define CAL_EASTER_ALWAYS_JULIAN 3
  24. #endif