From 503c4964d56a1140331d02c0f56dfc7efb733c40 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Tue, 17 Mar 2009 23:57:36 +0100 Subject: [PATCH] Revert "use inline functions instead of macros in charset.h" This reverts commit 7f2a635ac59805e29dd35aad8cba4a1aeaad6f99. --- src/charset.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/charset.h b/src/charset.h index dd18e185..8d093d70 100644 --- a/src/charset.h +++ b/src/charset.h @@ -25,10 +25,10 @@ #include #endif -#include - #if defined(SUPPORTED_LOCALES) && defined(HAVE_ICONV_H) +#include + void init_current_locale(); void utf_to_locale(std::string &); @@ -42,16 +42,16 @@ void str_pool_locale_to_utf(char *&); #else -void init_current_locale() { } +#define init_current_locale(); -void utf_to_locale(std::string &) { } -void locale_to_utf(std::string &) { } +#define utf_to_locale(x); +#define locale_to_utf(x); -std::string &utf_to_locale_cpy(const std::string &s) { return s; } -std::string &locale_to_utf_cpy(const std::string &s) { return s; } +#define utf_to_locale_cpy(x) (x) +#define locale_to_utf_cpy(x) (x) -void str_pool_utf_to_locale(char *&) { } -void str_pool_locale_to_utf(char *&) { } +#define str_pool_utf_to_locale(x); +#define str_pool_locale_to_utf(x); #endif // SUPPORTED_LOCALES && HAVE_ICONV_H