summaryrefslogtreecommitdiff
path: root/ext/bcmath/libbcmath/src/bcmath.h
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-12-09 23:59:33 +0000
committerfoobar <sniper@php.net>2003-12-09 23:59:33 +0000
commita08c1e4dce535ba70a5e3d954fce1a3b05411f4b (patch)
tree0a8fea3582a94b82772086262af675d0bdddb60d /ext/bcmath/libbcmath/src/bcmath.h
parent398ab9756a6c6c64f855ed578dd86a9d31168f6e (diff)
downloadphp-git-a08c1e4dce535ba70a5e3d954fce1a3b05411f4b.tar.gz
- Brought ext/bcmath to the new millennium
# consistency..
Diffstat (limited to 'ext/bcmath/libbcmath/src/bcmath.h')
-rw-r--r--ext/bcmath/libbcmath/src/bcmath.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/bcmath/libbcmath/src/bcmath.h b/ext/bcmath/libbcmath/src/bcmath.h
index 1c26a3d93d..ce68f0da4e 100644
--- a/ext/bcmath/libbcmath/src/bcmath.h
+++ b/ext/bcmath/libbcmath/src/bcmath.h
@@ -101,9 +101,9 @@ typedef struct bc_struct
_PROTOTYPE(void bc_init_numbers, (TSRMLS_D));
-_PROTOTYPE(bc_num bc_new_num, (int length, int scale));
+_PROTOTYPE(bc_num _bc_new_num_ex, (int length, int scale, int persistent));
-_PROTOTYPE(void bc_free_num, (bc_num *num));
+_PROTOTYPE(void _bc_free_num_ex, (bc_num *num, int persistent));
_PROTOTYPE(bc_num bc_copy_num, (bc_num num));
@@ -155,4 +155,8 @@ _PROTOTYPE(void bc_out_num, (bc_num num, int o_base, void (* out_char)(int),
_PROTOTYPE(void bc_rt_warn, (char *mesg ,...));
_PROTOTYPE(void bc_rt_error, (char *mesg ,...));
_PROTOTYPE(void bc_out_of_memory, (void));
+
+#define bc_new_num(length, scale) _bc_new_num_ex((length), (scale), 0)
+#define bc_free_num(num) _bc_free_num_ex((num), 0)
+
#endif