]> pd.if.org Git - pdclib/blobdiff - internals/_PDCLIB_locale.h
remove() implemented directly without glue trampoline.
[pdclib] / internals / _PDCLIB_locale.h
index 9644eb4b19c3b836b43505d2358f999093eb3799..da9321eb69f9f07d2fafdd526d744231c96b876d 100644 (file)
@@ -1,6 +1,14 @@
+/* PDCLib locale support <_PDCLIB_locale.h>
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
 #ifndef __PDCLIB_LOCALE_H
 #define __PDCLIB_LOCALE_H __PDCLIB_LOCALE_H
-#include <_PDCLIB_int.h>
+
+#include "_PDCLIB_int.h"
+
 #include <locale.h>
 #include <wctype.h>
 #include <threads.h>
@@ -82,8 +90,8 @@ typedef struct _PDCLIB_wcinfo
 } _PDCLIB_wcinfo_t;
 
 struct _PDCLIB_locale {
-    const _PDCLIB_charcodec_t    _Codec;
-    struct lconv                 _Conv;
+    const struct _PDCLIB_charcodec_t * _Codec;
+    struct lconv                       _Conv;
 
     /* ctype / wctype */
     /* XXX: Maybe re-evaluate constness of these later on? */
@@ -92,7 +100,7 @@ struct _PDCLIB_locale {
     const _PDCLIB_ctype_t       *_CType; 
 
     /* perror/strerror */
-    char                        *_ErrnoStr[_PDCLIB_ERRNO_MAX];
+    const char * const           _ErrnoStr[_PDCLIB_ERRNO_MAX];
 };
 
 extern const _PDCLIB_wcinfo_t _PDCLIB_wcinfo[];