fmk             Wed Jan  1 13:11:18 2003 EDT

  Modified files:              
    /php4/ext/standard  base64.c base64.h 
  Log:
  Allow base64 functions to be called from an extension buils as .so/.dll (iconv)
  
Index: php4/ext/standard/base64.c
diff -u php4/ext/standard/base64.c:1.36 php4/ext/standard/base64.c:1.37
--- php4/ext/standard/base64.c:1.36     Tue Dec 31 11:07:32 2002
+++ php4/ext/standard/base64.c  Wed Jan  1 13:11:18 2003
@@ -15,7 +15,7 @@
    | Author: Jim Winstead <[EMAIL PROTECTED]>                                  |
    +----------------------------------------------------------------------+
  */
-/* $Id: base64.c,v 1.36 2002/12/31 16:07:32 sebastian Exp $ */
+/* $Id: base64.c,v 1.37 2003/01/01 18:11:18 fmk Exp $ */
 
 #include <string.h>
 
@@ -53,7 +53,7 @@
 /* }}} */
 
 /* {{{ */
-unsigned char *php_base64_encode(const unsigned char *str, int length, int 
*ret_length)
+PHPAPI unsigned char *php_base64_encode(const unsigned char *str, int length, int 
+*ret_length)
 {
        const unsigned char *current = str;
        int i = 0;
@@ -127,7 +127,7 @@
 
 /* {{{ */
 /* as above, but backwards. :) */
-unsigned char *php_base64_decode(const unsigned char *str, int length, int 
*ret_length)
+PHPAPI unsigned char *php_base64_decode(const unsigned char *str, int length, int 
+*ret_length)
 {
        const unsigned char *current = str;
        int ch, i = 0, j = 0, k;
Index: php4/ext/standard/base64.h
diff -u php4/ext/standard/base64.h:1.10 php4/ext/standard/base64.h:1.11
--- php4/ext/standard/base64.h:1.10     Tue Dec 31 11:07:33 2002
+++ php4/ext/standard/base64.h  Wed Jan  1 13:11:18 2003
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: base64.h,v 1.10 2002/12/31 16:07:33 sebastian Exp $ */
+/* $Id: base64.h,v 1.11 2003/01/01 18:11:18 fmk Exp $ */
 
 #ifndef BASE64_H
 #define BASE64_H
@@ -24,8 +24,8 @@
 PHP_FUNCTION(base64_decode);
 PHP_FUNCTION(base64_encode);
 
-extern unsigned char *php_base64_encode(const unsigned char *, int, int *);
-extern unsigned char *php_base64_decode(const unsigned char *, int, int *);
+PHPAPI extern unsigned char *php_base64_encode(const unsigned char *, int, int *);
+PHPAPI extern unsigned char *php_base64_decode(const unsigned char *, int, int *);
 
 #endif /* BASE64_H */
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to