Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>

@@ -1,6 +1,7 @@
 /*
+ * Copyright 2013 Garrett D'Amore <garrett@damore.org>
  * Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
  * Copyright (c) 1993
  *      The Regents of the University of California.  All rights reserved.
  *
  * This code is derived from software contributed to Berkeley by

@@ -108,11 +109,11 @@
         _RuneEntry      *__ranges;      /* Pointer to the ranges */
 } _RuneRange;
 
 typedef struct {
         char            __magic[8];     /* Magic saying what version we are */
-        char            __encoding[32]; /* ASCII name of this encoding */
+        char            __encoding[32]; /* ASCII name of encoding */
 
         unsigned int    __runetype[_CACHED_RUNES];
         __rune_t        __maplower[_CACHED_RUNES];
         __rune_t        __mapupper[_CACHED_RUNES];
 

@@ -130,8 +131,9 @@
 } _RuneLocale;
 
 #define _RUNE_MAGIC_1   "RuneMagi"      /* Indicates version 0 of RuneLocale */
 
 extern _RuneLocale _DefaultRuneLocale;
-extern _RuneLocale *_CurrentRuneLocale;
 
+unsigned int __runetype(const _RuneLocale *, int);
+
 #endif  /* !_RUNETYPE_H_ */