add internal header for declaring __pleval function (used by gettext)
authorRich Felker <dalias@aerifal.cx>
Sun, 9 Sep 2018 04:55:28 +0000 (00:55 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:31 +0000 (14:34 -0400)
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
src/locale/pleval.c
src/locale/pleval.h [new file with mode: 0644]

index d8af960..de0828d 100644 (file)
@@ -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)
 {
index d60058d..04da1c4 100644 (file)
@@ -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 (file)
index 0000000..398d1b9
--- /dev/null
@@ -0,0 +1,6 @@
+#ifndef PLEVAL_H
+#define PLEVAL_H
+
+unsigned long __pleval(const char *, unsigned long);
+
+#endif