summaryrefslogtreecommitdiffstats
path: root/include/rune.h
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 /include/rune.h
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 'include/rune.h')
-rw-r--r--include/rune.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/rune.h b/include/rune.h
index cc1e13e..0bb6f43 100644
--- a/include/rune.h
+++ b/include/rune.h
@@ -48,13 +48,11 @@
typedef __rune_t rune_t;
#endif
-#define _INVALID_RUNE _CurrentRuneLocale->invalid_rune
+#define _INVALID_RUNE _CurrentRuneLocale->__invalid_rune
-#define __sgetrune _CurrentRuneLocale->sgetrune
-#define __sputrune _CurrentRuneLocale->sputrune
-
-#define sgetrune(s, n, r) (*__sgetrune)((s), (n), (r))
-#define sputrune(c, s, n, r) (*__sputrune)((c), (s), (n), (r))
+#define sgetrune(s, n, r) (_CurrentRuneLocale->__sgetrune)((s), (n), (r))
+#define sputrune(c, s, n, r) (_CurrentRuneLocale->__sputrune)((c), (s), \
+ (n), (r))
__BEGIN_DECLS
char *mbrune(const char *, rune_t);
OpenPOWER on IntegriCloud