diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-12-19 17:05:45 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-12-19 17:05:45 +0000 |
commit | 0c27b35b5f52dd50611b4bcc13533d1c7381b625 (patch) | |
tree | d69bd75b5738bad65a1e358645027a6e3d85c5de /encoding | |
parent | 521723198097f2af6298cede884b594c03b8f2e6 (diff) | |
download | libapr-util-0c27b35b5f52dd50611b4bcc13533d1c7381b625.tar.gz |
Force all Apache functions to be linked into the executable, whether they
are used or not. This uses the same mechanism that is used for APR
and APR-util. This may not be the correct solution, but it works, and that
is what I really care about. This also renames CHARSET_EBCDIC to
AP_CHARSET_EBCDIC. This is for namespace correctness, but it also makes
the exports script a bit easier.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57998 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'encoding')
-rw-r--r-- | encoding/ap_base64.c | 28 | ||||
-rw-r--r-- | encoding/apr_base64.c | 28 |
2 files changed, 28 insertions, 28 deletions
diff --git a/encoding/ap_base64.c b/encoding/ap_base64.c index 15bcba60..99b5a628 100644 --- a/encoding/ap_base64.c +++ b/encoding/ap_base64.c @@ -63,14 +63,14 @@ */ #include "ap_base64.h" -#ifdef CHARSET_EBCDIC +#ifdef AP_CHARSET_EBCDIC #include "apr_xlate.h" -#endif /* CHARSET_EBCDIC */ +#endif /* AP_CHARSET_EBCDIC */ /* aaaack but it's fast and const should make it shared text page. */ static const unsigned char pr2six[256] = { -#ifndef CHARSET_EBCDIC +#ifndef AP_CHARSET_EBCDIC /* ASCII table */ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, @@ -88,7 +88,7 @@ static const unsigned char pr2six[256] = 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64 -#else /*CHARSET_EBCDIC*/ +#else /*AP_CHARSET_EBCDIC*/ /* EBCDIC table */ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, @@ -106,10 +106,10 @@ static const unsigned char pr2six[256] = 64, 9, 10, 11, 12, 13, 14, 15, 16, 17, 64, 64, 64, 64, 64, 64, 64, 64, 18, 19, 20, 21, 22, 23, 24, 25, 64, 64, 64, 64, 64, 64, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 64, 64, 64, 64, 64, 64 -#endif /*CHARSET_EBCDIC*/ +#endif /*AP_CHARSET_EBCDIC*/ }; -#ifdef CHARSET_EBCDIC +#ifdef AP_CHARSET_EBCDIC static apr_xlate_t *xlate_to_ebcdic; static unsigned char os_toascii[256]; @@ -147,7 +147,7 @@ APR_DECLARE(apr_status_t) ap_base64init_ebcdic(apr_xlate_t *to_ascii, return APR_SUCCESS; } -#endif /*CHARSET_EBCDIC*/ +#endif /*AP_CHARSET_EBCDIC*/ APR_DECLARE(int) ap_base64decode_len(const char *bufcoded) { @@ -166,17 +166,17 @@ APR_DECLARE(int) ap_base64decode_len(const char *bufcoded) APR_DECLARE(int) ap_base64decode(char *bufplain, const char *bufcoded) { -#ifdef CHARSET_EBCDIC +#ifdef AP_CHARSET_EBCDIC apr_size_t inbytes_left, outbytes_left; -#endif /* CHARSET_EBCDIC */ +#endif /* AP_CHARSET_EBCDIC */ int len; len = ap_base64decode_binary((unsigned char *) bufplain, bufcoded); -#ifdef CHARSET_EBCDIC +#ifdef AP_CHARSET_EBCDIC inbytes_left = outbytes_left = len; apr_xlate_conv_buffer(xlate_to_ebcdic, bufplain, &inbytes_left, bufplain, &outbytes_left); -#endif /* CHARSET_EBCDIC */ +#endif /* AP_CHARSET_EBCDIC */ bufplain[len] = '\0'; return len; } @@ -239,9 +239,9 @@ APR_DECLARE(int) ap_base64encode_len(int len) APR_DECLARE(int) ap_base64encode(char *encoded, const char *string, int len) { -#ifndef CHARSET_EBCDIC +#ifndef AP_CHARSET_EBCDIC return ap_base64encode_binary(encoded, (const unsigned char *) string, len); -#else /* CHARSET_EBCDIC */ +#else /* AP_CHARSET_EBCDIC */ int i; char *p; @@ -270,7 +270,7 @@ APR_DECLARE(int) ap_base64encode(char *encoded, const char *string, int len) *p++ = '\0'; return p - encoded; -#endif /* CHARSET_EBCDIC */ +#endif /* AP_CHARSET_EBCDIC */ } /* This is the same as ap_base64encode() except on EBCDIC machines, where diff --git a/encoding/apr_base64.c b/encoding/apr_base64.c index 15bcba60..99b5a628 100644 --- a/encoding/apr_base64.c +++ b/encoding/apr_base64.c @@ -63,14 +63,14 @@ */ #include "ap_base64.h" -#ifdef CHARSET_EBCDIC +#ifdef AP_CHARSET_EBCDIC #include "apr_xlate.h" -#endif /* CHARSET_EBCDIC */ +#endif /* AP_CHARSET_EBCDIC */ /* aaaack but it's fast and const should make it shared text page. */ static const unsigned char pr2six[256] = { -#ifndef CHARSET_EBCDIC +#ifndef AP_CHARSET_EBCDIC /* ASCII table */ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, @@ -88,7 +88,7 @@ static const unsigned char pr2six[256] = 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64 -#else /*CHARSET_EBCDIC*/ +#else /*AP_CHARSET_EBCDIC*/ /* EBCDIC table */ 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, @@ -106,10 +106,10 @@ static const unsigned char pr2six[256] = 64, 9, 10, 11, 12, 13, 14, 15, 16, 17, 64, 64, 64, 64, 64, 64, 64, 64, 18, 19, 20, 21, 22, 23, 24, 25, 64, 64, 64, 64, 64, 64, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 64, 64, 64, 64, 64, 64 -#endif /*CHARSET_EBCDIC*/ +#endif /*AP_CHARSET_EBCDIC*/ }; -#ifdef CHARSET_EBCDIC +#ifdef AP_CHARSET_EBCDIC static apr_xlate_t *xlate_to_ebcdic; static unsigned char os_toascii[256]; @@ -147,7 +147,7 @@ APR_DECLARE(apr_status_t) ap_base64init_ebcdic(apr_xlate_t *to_ascii, return APR_SUCCESS; } -#endif /*CHARSET_EBCDIC*/ +#endif /*AP_CHARSET_EBCDIC*/ APR_DECLARE(int) ap_base64decode_len(const char *bufcoded) { @@ -166,17 +166,17 @@ APR_DECLARE(int) ap_base64decode_len(const char *bufcoded) APR_DECLARE(int) ap_base64decode(char *bufplain, const char *bufcoded) { -#ifdef CHARSET_EBCDIC +#ifdef AP_CHARSET_EBCDIC apr_size_t inbytes_left, outbytes_left; -#endif /* CHARSET_EBCDIC */ +#endif /* AP_CHARSET_EBCDIC */ int len; len = ap_base64decode_binary((unsigned char *) bufplain, bufcoded); -#ifdef CHARSET_EBCDIC +#ifdef AP_CHARSET_EBCDIC inbytes_left = outbytes_left = len; apr_xlate_conv_buffer(xlate_to_ebcdic, bufplain, &inbytes_left, bufplain, &outbytes_left); -#endif /* CHARSET_EBCDIC */ +#endif /* AP_CHARSET_EBCDIC */ bufplain[len] = '\0'; return len; } @@ -239,9 +239,9 @@ APR_DECLARE(int) ap_base64encode_len(int len) APR_DECLARE(int) ap_base64encode(char *encoded, const char *string, int len) { -#ifndef CHARSET_EBCDIC +#ifndef AP_CHARSET_EBCDIC return ap_base64encode_binary(encoded, (const unsigned char *) string, len); -#else /* CHARSET_EBCDIC */ +#else /* AP_CHARSET_EBCDIC */ int i; char *p; @@ -270,7 +270,7 @@ APR_DECLARE(int) ap_base64encode(char *encoded, const char *string, int len) *p++ = '\0'; return p - encoded; -#endif /* CHARSET_EBCDIC */ +#endif /* AP_CHARSET_EBCDIC */ } /* This is the same as ap_base64encode() except on EBCDIC machines, where |