diff options
author | Bojan Smojver <bojan@apache.org> | 2009-07-16 04:52:56 +0000 |
---|---|---|
committer | Bojan Smojver <bojan@apache.org> | 2009-07-16 04:52:56 +0000 |
commit | a8a38fa8c6aee51481b3f93ebc6c0a7dbc385191 (patch) | |
tree | 0c1c98ecda582dad96c430c26da47dc11375a87e /encoding | |
parent | ca371098d7183a23cea08a7605d9a95926864a0a (diff) | |
download | apr-a8a38fa8c6aee51481b3f93ebc6c0a7dbc385191.tar.gz |
Convert various APU_DECLARE into APR_DECLARE.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@794523 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'encoding')
-rw-r--r-- | encoding/apr_base64.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/encoding/apr_base64.c b/encoding/apr_base64.c index 1eed1530d..533859130 100644 --- a/encoding/apr_base64.c +++ b/encoding/apr_base64.c @@ -71,7 +71,7 @@ static const unsigned char pr2six[256] = static apr_xlate_t *xlate_to_ebcdic; static unsigned char os_toascii[256]; -APU_DECLARE(apr_status_t) apr_base64init_ebcdic(apr_xlate_t *to_ascii, +APR_DECLARE(apr_status_t) apr_base64init_ebcdic(apr_xlate_t *to_ascii, apr_xlate_t *to_ebcdic) { int i; @@ -107,7 +107,7 @@ APU_DECLARE(apr_status_t) apr_base64init_ebcdic(apr_xlate_t *to_ascii, } #endif /*APR_CHARSET_EBCDIC*/ -APU_DECLARE(int) apr_base64_decode_len(const char *bufcoded) +APR_DECLARE(int) apr_base64_decode_len(const char *bufcoded) { int nbytesdecoded; register const unsigned char *bufin; @@ -122,7 +122,7 @@ APU_DECLARE(int) apr_base64_decode_len(const char *bufcoded) return nbytesdecoded + 1; } -APU_DECLARE(int) apr_base64_decode(char *bufplain, const char *bufcoded) +APR_DECLARE(int) apr_base64_decode(char *bufplain, const char *bufcoded) { #if APR_CHARSET_EBCDIC apr_size_t inbytes_left, outbytes_left; @@ -142,7 +142,7 @@ APU_DECLARE(int) apr_base64_decode(char *bufplain, const char *bufcoded) /* This is the same as apr_base64_decode() except on EBCDIC machines, where * the conversion of the output to ebcdic is left out. */ -APU_DECLARE(int) apr_base64_decode_binary(unsigned char *bufplain, +APR_DECLARE(int) apr_base64_decode_binary(unsigned char *bufplain, const char *bufcoded) { int nbytesdecoded; @@ -190,12 +190,12 @@ APU_DECLARE(int) apr_base64_decode_binary(unsigned char *bufplain, static const char basis_64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; -APU_DECLARE(int) apr_base64_encode_len(int len) +APR_DECLARE(int) apr_base64_encode_len(int len) { return ((len + 2) / 3 * 4) + 1; } -APU_DECLARE(int) apr_base64_encode(char *encoded, const char *string, int len) +APR_DECLARE(int) apr_base64_encode(char *encoded, const char *string, int len) { #if !APR_CHARSET_EBCDIC return apr_base64_encode_binary(encoded, (const unsigned char *) string, len); @@ -234,7 +234,7 @@ APU_DECLARE(int) apr_base64_encode(char *encoded, const char *string, int len) /* This is the same as apr_base64_encode() except on EBCDIC machines, where * the conversion of the input to ascii is left out. */ -APU_DECLARE(int) apr_base64_encode_binary(char *encoded, +APR_DECLARE(int) apr_base64_encode_binary(char *encoded, const unsigned char *string, int len) { int i; |