12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef PHP_BCMATH_H
- #define PHP_BCMATH_H
- #include "libbcmath/src/bcmath.h"
- extern zend_module_entry bcmath_module_entry;
- #define phpext_bcmath_ptr &bcmath_module_entry
- #include "php_version.h"
- #define PHP_BCMATH_VERSION PHP_VERSION
- PHP_MINIT_FUNCTION(bcmath);
- PHP_MSHUTDOWN_FUNCTION(bcmath);
- PHP_MINFO_FUNCTION(bcmath);
- ZEND_BEGIN_MODULE_GLOBALS(bcmath)
- bc_num _zero_;
- bc_num _one_;
- bc_num _two_;
- int bc_precision;
- ZEND_END_MODULE_GLOBALS(bcmath)
- #if defined(ZTS) && defined(COMPILE_DL_BCMATH)
- ZEND_TSRMLS_CACHE_EXTERN()
- #endif
- ZEND_EXTERN_MODULE_GLOBALS(bcmath)
- #define BCG(v) ZEND_MODULE_GLOBALS_ACCESSOR(bcmath, v)
- #endif
|