summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-09 00:55:28 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 14:34:31 -0400
commit15230afc8dd5e6493da7cb5fcf0153672dab79d6 (patch)
treec6cb102499c400317dfbedff5edc4917f352330a /src
parent50a298ea3b122efbb31e7674a20e6c7dc30ca1dc (diff)
downloadmusl-15230afc8dd5e6493da7cb5fcf0153672dab79d6.tar.gz
add internal header for declaring __pleval function (used by gettext)
locale_impl.h could have been used, but this function is completely independent of anything else, and preserving that property seems nice.
Diffstat (limited to 'src')
-rw-r--r--src/locale/dcngettext.c2
-rw-r--r--src/locale/pleval.c1
-rw-r--r--src/locale/pleval.h6
3 files changed, 8 insertions, 1 deletions
diff --git a/src/locale/dcngettext.c b/src/locale/dcngettext.c
index d8af9603..de0828d9 100644
--- a/src/locale/dcngettext.c
+++ b/src/locale/dcngettext.c
@@ -8,6 +8,7 @@
#include "locale_impl.h"
#include "libc.h"
#include "atomic.h"
+#include "pleval.h"
struct binding {
struct binding *next;
@@ -114,7 +115,6 @@ weak_alias(dummy_gettextdomain, __gettextdomain);
const unsigned char *__map_file(const char *, size_t *);
int __munmap(void *, size_t);
-unsigned long __pleval(const char *, unsigned long);
char *dcngettext(const char *domainname, const char *msgid1, const char *msgid2, unsigned long int n, int category)
{
diff --git a/src/locale/pleval.c b/src/locale/pleval.c
index d60058da..04da1c45 100644
--- a/src/locale/pleval.c
+++ b/src/locale/pleval.c
@@ -1,5 +1,6 @@
#include <stdlib.h>
#include <ctype.h>
+#include "pleval.h"
/*
grammar:
diff --git a/src/locale/pleval.h b/src/locale/pleval.h
new file mode 100644
index 00000000..398d1b98
--- /dev/null
+++ b/src/locale/pleval.h
@@ -0,0 +1,6 @@
+#ifndef PLEVAL_H
+#define PLEVAL_H
+
+unsigned long __pleval(const char *, unsigned long);
+
+#endif