summaryrefslogtreecommitdiff
path: root/include/util_ebcdic.h
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2000-10-26 10:48:28 +0000
committerJeff Trawick <trawick@apache.org>2000-10-26 10:48:28 +0000
commit6217bc8f88fe0a734478a70b872fa5bb062dd559 (patch)
tree3df3d2866a7d6406244389ce4a36dacd99a7bcb4 /include/util_ebcdic.h
parent66f97567e9c89cb112f701e3eb9907eeeacdccf5 (diff)
downloadhttpd-6217bc8f88fe0a734478a70b872fa5bb062dd559.tar.gz
Introduce ap_xlate_proto_{to|from}_ascii() to clean up some of
the EBCDIC support. They are noops on ASCII machines, so this type of translation doesn't have to be surrounded by #ifdef CHARSET_EBCDIC. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86751 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/util_ebcdic.h')
-rw-r--r--include/util_ebcdic.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/util_ebcdic.h b/include/util_ebcdic.h
index 8b6c645da5..9799823790 100644
--- a/include/util_ebcdic.h
+++ b/include/util_ebcdic.h
@@ -79,10 +79,31 @@ extern "C" {
*/
apr_status_t ap_init_ebcdic(apr_pool_t *pool);
+/**
+ * Convert protocol data from the implementation character
+ * set to ASCII.
+ * @param buffer buffer to translate
+ * @param len number of bytes to translate
+ */
+void ap_xlate_proto_to_ascii(char *buffer, apr_size_t len);
+
+/**
+ * Convert protocol data to the implementation character
+ * set from ASCII.
+ * @param buffer buffer to translate
+ * @param len number of bytes to translate
+ */
+void ap_xlate_proto_from_ascii(char *buffer, apr_size_t len);
+
#ifdef __cplusplus
}
#endif
+#else /* CHARSET_EBCDIC */
+
+#define ap_xlate_proto_to_ascii(x,y) /* NOOP */
+#define ap_xlate_proto_from_ascii(x,y) /* NOOP */
+
#endif /* CHARSET_EBCDIC */
#endif /* !APACHE_UTIL_EBCDIC_H */