cvs: php4 /ext/standard math.c
| From: | Frank M. Kromann | Date: | Fri, 27 Oct 2000 20:26:17 +0000 |
| Subject: | cvs: php4 /ext/standard math.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-2315@lists.php.net to get a copy of this message | ||
fmk Fri Oct 27 13:26:17 2000 EDT
Modified files:
/php4/ext/standard math.c
Log:
Making _php_math_longtobase() and _php_math_basetolong() callable from DLL and SO modules
Index: php4/ext/standard/math.c
diff -u php4/ext/standard/math.c:1.36 php4/ext/standard/math.c:1.37
--- php4/ext/standard/math.c:1.36 Sun Sep 17 14:11:55 2000
+++ php4/ext/standard/math.c Fri Oct 27 13:26:16 2000
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: math.c,v 1.36 2000/09/17 21:11:55 stas Exp $ */
+/* $Id: math.c,v 1.37 2000/10/27 20:26:16 fmk Exp $ */
#include "php.h"
#include "php_math.h"
@@ -390,7 +390,7 @@
/*
* Convert a string representation of a base(2-36) number to a long.
*/
-static long
+PHPAPI long
_php_math_basetolong(zval *arg, int base) {
long mult = 1, num = 0, digit;
int i;
@@ -427,7 +427,7 @@
* Convert a long to a string containing a base(2-36) representation of
* the number.
*/
-static char *
+PHPAPI char *
_php_math_longtobase(zval *arg, int base)
{
static char digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";