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.

64 lines
2.5 KiB

27 years ago
27 years ago
27 years ago
27 years ago
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP HTML Embedded Scripting Language Version 3.0 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997,1998 PHP Development Team (See Credits file) |
  6. +----------------------------------------------------------------------+
  7. | This program is free software; you can redistribute it and/or modify |
  8. | it under the terms of one of the following licenses: |
  9. | |
  10. | A) the GNU General Public License as published by the Free Software |
  11. | Foundation; either version 2 of the License, or (at your option) |
  12. | any later version. |
  13. | |
  14. | B) the PHP License as published by the PHP Development Team and |
  15. | included in the distribution in the file: LICENSE |
  16. | |
  17. | This program is distributed in the hope that it will be useful, |
  18. | but WITHOUT ANY WARRANTY; without even the implied warranty of |
  19. | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
  20. | GNU General Public License for more details. |
  21. | |
  22. | You should have received a copy of both licenses referred to here. |
  23. | If you did not, or have any questions about PHP licensing, please |
  24. | contact core@php.net. |
  25. +----------------------------------------------------------------------+
  26. | Authors: Andi Gutmans <andi@zend.com> |
  27. +----------------------------------------------------------------------+
  28. */
  29. /* $Id$ */
  30. #ifndef _PHP3_BCMATH_H
  31. #define _PHP3_BCMATH_H
  32. #if COMPILE_DL
  33. #undef WITH_BCMATH
  34. #define WITH_BCMATH 1
  35. #endif
  36. #if WITH_BCMATH
  37. extern php3_module_entry bcmath_module_entry;
  38. #define phpext_bcmath_ptr &bcmath_module_entry
  39. extern PHP_RINIT_FUNCTION(bcmath);
  40. extern PHP_RSHUTDOWN_FUNCTION(bcmath);
  41. PHP_FUNCTION(bcadd);
  42. PHP_FUNCTION(bcsub);
  43. PHP_FUNCTION(bcmul);
  44. PHP_FUNCTION(bcdiv);
  45. PHP_FUNCTION(bcmod);
  46. PHP_FUNCTION(bcpow);
  47. PHP_FUNCTION(bcsqrt);
  48. PHP_FUNCTION(bccomp);
  49. PHP_FUNCTION(bcscale);
  50. #else
  51. #define phpext_bcmath_ptr NULL
  52. #endif
  53. #endif /* _PHP3_BCMATH_H */