php_bcmath.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. +----------------------------------------------------------------------+
  3. | Copyright (c) The PHP Group |
  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. | https://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. | Author: Andi Gutmans <andi@php.net> |
  14. +----------------------------------------------------------------------+
  15. */
  16. #ifndef PHP_BCMATH_H
  17. #define PHP_BCMATH_H
  18. #include "libbcmath/src/bcmath.h"
  19. extern zend_module_entry bcmath_module_entry;
  20. #define phpext_bcmath_ptr &bcmath_module_entry
  21. #include "php_version.h"
  22. #define PHP_BCMATH_VERSION PHP_VERSION
  23. PHP_MINIT_FUNCTION(bcmath);
  24. PHP_MSHUTDOWN_FUNCTION(bcmath);
  25. PHP_MINFO_FUNCTION(bcmath);
  26. ZEND_BEGIN_MODULE_GLOBALS(bcmath)
  27. bc_num _zero_;
  28. bc_num _one_;
  29. bc_num _two_;
  30. int bc_precision;
  31. ZEND_END_MODULE_GLOBALS(bcmath)
  32. #if defined(ZTS) && defined(COMPILE_DL_BCMATH)
  33. ZEND_TSRMLS_CACHE_EXTERN()
  34. #endif
  35. ZEND_EXTERN_MODULE_GLOBALS(bcmath)
  36. #define BCG(v) ZEND_MODULE_GLOBALS_ACCESSOR(bcmath, v)
  37. #endif /* PHP_BCMATH_H */