From 15230afc8dd5e6493da7cb5fcf0153672dab79d6 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 9 Sep 2018 00:55:28 -0400 Subject: [PATCH] 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. --- src/locale/dcngettext.c | 2 +- src/locale/pleval.c | 1 + src/locale/pleval.h | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/locale/pleval.h 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 #include +#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 -- 2.25.1