You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.3 KiB

  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | This source file is subject to version 3.01 of the PHP license, |
  6. | that is bundled with this package in the file LICENSE, and is |
  7. | available through the world-wide-web at the following url: |
  8. | http://www.php.net/license/3_01.txt |
  9. | If you did not receive a copy of the PHP license and are unable to |
  10. | obtain it through the world-wide-web, please send a note to |
  11. | license@php.net so we can mail you a copy immediately. |
  12. +----------------------------------------------------------------------+
  13. | Authors: Vadim Savchuk <vsavchuk@productengine.com> |
  14. | Dmitry Lakhtyuk <dlakhtyuk@productengine.com> |
  15. | Stanislav Malyshev <stas@zend.com> |
  16. | Kirti Velankar <kirtig@yahoo-inc.com> |
  17. +----------------------------------------------------------------------+
  18. */
  19. #ifndef PHP_INTL_H
  20. #define PHP_INTL_H
  21. #include <php.h>
  22. #include "collator/collator_sort.h"
  23. #include "grapheme/grapheme.h"
  24. #include "intl_error.h"
  25. extern zend_module_entry intl_module_entry;
  26. #define phpext_intl_ptr &intl_module_entry
  27. #ifdef PHP_WIN32
  28. #define PHP_INTL_API __declspec(dllexport)
  29. #else
  30. #define PHP_INTL_API
  31. #endif
  32. #ifdef ZTS
  33. #include "TSRM.h"
  34. #endif
  35. ZEND_BEGIN_MODULE_GLOBALS(intl)
  36. zval* current_collator;
  37. char* default_locale;
  38. collator_compare_func_t compare_func;
  39. UBreakIterator* grapheme_iterator;
  40. intl_error g_error;
  41. long error_level;
  42. ZEND_END_MODULE_GLOBALS(intl)
  43. /* Macro to access request-wide global variables. */
  44. #ifdef ZTS
  45. #define INTL_G(v) TSRMG(intl_globals_id, zend_intl_globals *, v)
  46. #else
  47. #define INTL_G(v) (intl_globals.v)
  48. #endif
  49. ZEND_EXTERN_MODULE_GLOBALS(intl)
  50. PHP_MINIT_FUNCTION(intl);
  51. PHP_MSHUTDOWN_FUNCTION(intl);
  52. PHP_RINIT_FUNCTION(intl);
  53. PHP_RSHUTDOWN_FUNCTION(intl);
  54. PHP_MINFO_FUNCTION(intl);
  55. #define PHP_INTL_VERSION "1.0.0"
  56. #endif /* PHP_INTL_H */
  57. /*
  58. * Local variables:
  59. * tab-width: 4
  60. * c-basic-offset: 4
  61. * End:
  62. * vim600: noet sw=4 ts=4 fdm=marker
  63. * vim<600: noet sw=4 ts=4
  64. */