diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-26 14:06:56 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-03-26 14:06:56 +0100 |
commit | 19158a837df5093a2d655536424412bac2b07467 (patch) | |
tree | 3f3ce9c808e05dbf8dd38292f4c2db52cb73b429 /include | |
parent | aa167556cd2954bb9a9fb0a005178462087a4600 (diff) | |
download | busybox-w32-19158a837df5093a2d655536424412bac2b07467.tar.gz busybox-w32-19158a837df5093a2d655536424412bac2b07467.tar.bz2 busybox-w32-19158a837df5093a2d655536424412bac2b07467.zip |
unicode: s/FEATURE_ASSUME_UNICODE/UNICODE_SUPPORT, add UNICODE_USING_LOCALE
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/unicode.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/unicode.h b/include/unicode.h index deb4022c3..4e2927297 100644 --- a/include/unicode.h +++ b/include/unicode.h | |||
@@ -5,7 +5,7 @@ | |||
5 | #ifndef UNICODE_H | 5 | #ifndef UNICODE_H |
6 | #define UNICODE_H 1 | 6 | #define UNICODE_H 1 |
7 | 7 | ||
8 | #if ENABLE_LOCALE_SUPPORT | 8 | #if ENABLE_UNICODE_USING_LOCALE |
9 | # include <wchar.h> | 9 | # include <wchar.h> |
10 | # include <wctype.h> | 10 | # include <wctype.h> |
11 | #endif | 11 | #endif |
@@ -21,7 +21,7 @@ enum { | |||
21 | #define unicode_bidi_isrtl(wc) 0 | 21 | #define unicode_bidi_isrtl(wc) 0 |
22 | #define unicode_bidi_is_neutral_wchar(wc) (wc <= 126 && !isalpha(wc)) | 22 | #define unicode_bidi_is_neutral_wchar(wc) (wc <= 126 && !isalpha(wc)) |
23 | 23 | ||
24 | #if !ENABLE_FEATURE_ASSUME_UNICODE | 24 | #if !ENABLE_UNICODE_SUPPORT |
25 | 25 | ||
26 | # define unicode_strlen(string) strlen(string) | 26 | # define unicode_strlen(string) strlen(string) |
27 | # define unicode_status UNICODE_OFF | 27 | # define unicode_status UNICODE_OFF |
@@ -50,7 +50,7 @@ char* FAST_FUNC unicode_conv_to_printable(uni_stat_t *stats, const char *src); | |||
50 | char* FAST_FUNC unicode_conv_to_printable_maxwidth(uni_stat_t *stats, const char *src, unsigned maxwidth); | 50 | char* FAST_FUNC unicode_conv_to_printable_maxwidth(uni_stat_t *stats, const char *src, unsigned maxwidth); |
51 | char* FAST_FUNC unicode_conv_to_printable_fixedwidth(uni_stat_t *stats, const char *src, unsigned width); | 51 | char* FAST_FUNC unicode_conv_to_printable_fixedwidth(uni_stat_t *stats, const char *src, unsigned width); |
52 | 52 | ||
53 | # if ENABLE_LOCALE_SUPPORT | 53 | # if ENABLE_UNICODE_USING_LOCALE |
54 | 54 | ||
55 | extern uint8_t unicode_status; | 55 | extern uint8_t unicode_status; |
56 | void init_unicode(void) FAST_FUNC; | 56 | void init_unicode(void) FAST_FUNC; |
@@ -102,9 +102,9 @@ int unicode_bidi_is_neutral_wchar(wint_t wc) FAST_FUNC; | |||
102 | # endif | 102 | # endif |
103 | 103 | ||
104 | 104 | ||
105 | # endif /* !LOCALE_SUPPORT */ | 105 | # endif /* !UNICODE_USING_LOCALE */ |
106 | 106 | ||
107 | #endif /* FEATURE_ASSUME_UNICODE */ | 107 | #endif /* UNICODE_SUPPORT */ |
108 | 108 | ||
109 | POP_SAVED_FUNCTION_VISIBILITY | 109 | POP_SAVED_FUNCTION_VISIBILITY |
110 | 110 | ||