aboutsummaryrefslogtreecommitdiff
path: root/intl/loadinfo.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1998-03-25 20:15:05 +0000
committerTom Tromey <tromey@redhat.com>1998-03-25 20:15:05 +0000
commit7421c9f18200601a2cec563f4c2015ef028d2006 (patch)
tree3ac76916302d6d6262f44e6579051399026c8986 /intl/loadinfo.h
parentce6821a5959a40d6943d3e6be8e88d4a0569254c (diff)
downloadgdb-7421c9f18200601a2cec563f4c2015ef028d2006.zip
gdb-7421c9f18200601a2cec563f4c2015ef028d2006.tar.gz
gdb-7421c9f18200601a2cec563f4c2015ef028d2006.tar.bz2
Initial revision
Diffstat (limited to 'intl/loadinfo.h')
-rw-r--r--intl/loadinfo.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/intl/loadinfo.h b/intl/loadinfo.h
new file mode 100644
index 0000000..c67c2eb
--- /dev/null
+++ b/intl/loadinfo.h
@@ -0,0 +1,58 @@
+#ifndef PARAMS
+# if __STDC__
+# define PARAMS(args) args
+# else
+# define PARAMS(args) ()
+# endif
+#endif
+
+/* Encoding of locale name parts. */
+#define CEN_REVISION 1
+#define CEN_SPONSOR 2
+#define CEN_SPECIAL 4
+#define XPG_NORM_CODESET 8
+#define XPG_CODESET 16
+#define TERRITORY 32
+#define CEN_AUDIENCE 64
+#define XPG_MODIFIER 128
+
+#define CEN_SPECIFIC (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE)
+#define XPG_SPECIFIC (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER)
+
+
+struct loaded_l10nfile
+{
+ const char *filename;
+ int decided;
+
+ const void *data;
+
+ struct loaded_l10nfile *next;
+ struct loaded_l10nfile *successor[1];
+};
+
+
+extern const char *_nl_normalize_codeset PARAMS ((const char *codeset,
+ size_t name_len));
+
+extern struct loaded_l10nfile *
+_nl_make_l10nflist PARAMS ((struct loaded_l10nfile **l10nfile_list,
+ const char *dirlist, size_t dirlist_len, int mask,
+ const char *language, const char *territory,
+ const char *codeset,
+ const char *normalized_codeset,
+ const char *modifier, const char *special,
+ const char *sponsor, const char *revision,
+ const char *filename, int do_allocate));
+
+
+extern const char *_nl_expand_alias PARAMS ((const char *name));
+
+extern int _nl_explode_name PARAMS ((char *name, const char **language,
+ const char **modifier,
+ const char **territory,
+ const char **codeset,
+ const char **normalized_codeset,
+ const char **special,
+ const char **sponsor,
+ const char **revision));