]> granicus.if.org Git - php/commitdiff
style fix
authorfoobar <sniper@php.net>
Thu, 22 Aug 2002 01:20:50 +0000 (01:20 +0000)
committerfoobar <sniper@php.net>
Thu, 22 Aug 2002 01:20:50 +0000 (01:20 +0000)
ext/standard/base64.c

index 6eeb1e67f476c5095970a69d1aadfbc9e42592c8..18f1e9c5328bf89717853761aa2640de62e11ce0 100644 (file)
@@ -53,7 +53,8 @@ static const short base64_reverse_table[256] = {
 /* }}} */
 
 /* {{{ */
-unsigned char *php_base64_encode(const unsigned char *str, int length, int *ret_length) {
+unsigned char *php_base64_encode(const unsigned char *str, int length, int *ret_length)
+{
        const unsigned char *current = str;
        int i = 0;
        unsigned char *result = (unsigned char *)emalloc(((length + 3 - length % 3) * 4 / 3 + 1) * sizeof(char));
@@ -94,7 +95,8 @@ unsigned char *php_base64_encode(const unsigned char *str, int length, int *ret_
 /* generate reverse table (do not set index 0 to 64)
 static unsigned short base64_reverse_table[256];
 #define rt base64_reverse_table
-void php_base64_init() {
+void php_base64_init()
+{
        char *s = emalloc(10240), *sp;
        char *chp;
        short idx;
@@ -125,7 +127,8 @@ void php_base64_init() {
 
 /* {{{ */
 /* as above, but backwards. :) */
-unsigned char *php_base64_decode(const unsigned char *str, int length, int *ret_length) {
+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;
        /* this sucks for threaded environments */