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 d8af96037119455d78aaab72d8227d518e2b3764..de0828d9e8836d9042c123be099f5eb85f5af137 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 d60058da6c3711a3ceaed85f89afbb2f442f1fb5..04da1c45e85989c831d1e5deb84055498e0e42b9 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