summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/setrunelocale.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-06-23 07:01:44 +0000
committertjr <tjr@FreeBSD.org>2004-06-23 07:01:44 +0000
commitd04fd4700f3a09552b35dfa53c683d0404754383 (patch)
treed89ed2a150bbb4fcdbff69b2c14d5d87b5dfbdfe /lib/libc/locale/setrunelocale.c
parent663370f9413d6ac8d722e85a009c71e6c321fdc0 (diff)
downloadFreeBSD-src-d04fd4700f3a09552b35dfa53c683d0404754383.zip
FreeBSD-src-d04fd4700f3a09552b35dfa53c683d0404754383.tar.gz
Prefix the names of members of _RuneLocale and its sub-structures
with ``__'' to avoid polluting the namespace. This doesn't change the documented rune interface at all, but breaks applications that accessed _RuneLocale directly.
Diffstat (limited to 'lib/libc/locale/setrunelocale.c')
-rw-r--r--lib/libc/locale/setrunelocale.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/libc/locale/setrunelocale.c b/lib/libc/locale/setrunelocale.c
index 85b17a1..de3ee06 100644
--- a/lib/libc/locale/setrunelocale.c
+++ b/lib/libc/locale/setrunelocale.c
@@ -159,33 +159,33 @@ __setrunelocale(const char *encoding)
__mbsrtowcs = __mbsrtowcs_std;
__wcrtomb = NULL;
__wcsrtombs = __wcsrtombs_std;
- rl->sputrune = __emulated_sputrune;
- rl->sgetrune = __emulated_sgetrune;
- if (strcmp(rl->encoding, "NONE") == 0)
+ rl->__sputrune = __emulated_sputrune;
+ rl->__sgetrune = __emulated_sgetrune;
+ if (strcmp(rl->__encoding, "NONE") == 0)
ret = _none_init(rl);
- else if (strcmp(rl->encoding, "UTF2") == 0)
+ else if (strcmp(rl->__encoding, "UTF2") == 0)
ret = _UTF2_init(rl);
- else if (strcmp(rl->encoding, "UTF-8") == 0)
+ else if (strcmp(rl->__encoding, "UTF-8") == 0)
ret = _UTF8_init(rl);
- else if (strcmp(rl->encoding, "EUC") == 0)
+ else if (strcmp(rl->__encoding, "EUC") == 0)
ret = _EUC_init(rl);
- else if (strcmp(rl->encoding, "GB18030") == 0)
+ else if (strcmp(rl->__encoding, "GB18030") == 0)
ret = _GB18030_init(rl);
- else if (strcmp(rl->encoding, "GB2312") == 0)
+ else if (strcmp(rl->__encoding, "GB2312") == 0)
ret = _GB2312_init(rl);
- else if (strcmp(rl->encoding, "GBK") == 0)
+ else if (strcmp(rl->__encoding, "GBK") == 0)
ret = _GBK_init(rl);
- else if (strcmp(rl->encoding, "BIG5") == 0)
+ else if (strcmp(rl->__encoding, "BIG5") == 0)
ret = _BIG5_init(rl);
- else if (strcmp(rl->encoding, "MSKanji") == 0)
+ else if (strcmp(rl->__encoding, "MSKanji") == 0)
ret = _MSKanji_init(rl);
else
ret = EFTYPE;
if (ret == 0) {
if (CachedRuneLocale != NULL) {
/* See euc.c */
- if (strcmp(CachedRuneLocale->encoding, "EUC") == 0)
- free(CachedRuneLocale->variable);
+ if (strcmp(CachedRuneLocale->__encoding, "EUC") == 0)
+ free(CachedRuneLocale->__variable);
free(CachedRuneLocale);
}
CachedRuneLocale = _CurrentRuneLocale;
OpenPOWER on IntegriCloud