about summary refs log tree commit diff
path: root/src/internal/locale_impl.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-07-24 03:23:11 -0400
committerRich Felker <dalias@aerifal.cx>2014-07-24 03:23:11 -0400
commit6cb4f91db7a5dc3bca63037ddc5f998a08dc3fb0 (patch)
tree2a347ad0a3c5240c77d61ad8d078ed9a77ff22bb /src/internal/locale_impl.h
parent674e28af2deaa3ef2b71af18f7a18af22467d5ef (diff)
downloadmusl-6cb4f91db7a5dc3bca63037ddc5f998a08dc3fb0.tar.gz
musl-6cb4f91db7a5dc3bca63037ddc5f998a08dc3fb0.tar.xz
musl-6cb4f91db7a5dc3bca63037ddc5f998a08dc3fb0.zip
implement locale file loading and state for remaining locale categories
there is still no code which actually uses the loaded locale files, so
the main observable effect of this commit is that calls to setlocale
store and give back the names of the selected locales for the
remaining categories (LC_TIME, LC_COLLATE, LC_MONETARY) if a locale
file by the requested name could be loaded.
Diffstat (limited to 'src/internal/locale_impl.h')
-rw-r--r--src/internal/locale_impl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/internal/locale_impl.h b/src/internal/locale_impl.h
index 2747b85a..0ee72d3e 100644
--- a/src/internal/locale_impl.h
+++ b/src/internal/locale_impl.h
@@ -5,6 +5,13 @@
 
 #define LOCALE_NAME_MAX 15
 
+struct __locale_map {
+	const void *map;
+	size_t map_size;
+	char name[LOCALE_NAME_MAX+1];
+	struct __locale_map *next;
+};
+
 int __setlocalecat(locale_t, int, const char *);
 
 #define CURRENT_LOCALE \