move __strftime_fmt_1 declaration to time_impl.h
authorRich Felker <dalias@aerifal.cx>
Sat, 8 Sep 2018 02:52:03 +0000 (22:52 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:30 +0000 (14:34 -0400)
this is a helper function from strftime that's also used by wcsftime.

src/time/time_impl.h
src/time/wcsftime.c

index cf9a28e..5cc2fe2 100644 (file)
@@ -8,3 +8,4 @@ const char *__tm_to_tzname(const struct tm *);
 int __secs_to_tm(long long, struct tm *);
 void __secs_to_zone(long long, int, int *, long *, long *, const char **);
 const unsigned char *__map_file(const char *, size_t *);
+const char *__strftime_fmt_1(char (*)[100], size_t *, int, const struct tm *, locale_t, int);
index 23500cc..31b30ca 100644 (file)
@@ -2,10 +2,9 @@
 #include <time.h>
 #include <locale.h>
 #include "locale_impl.h"
+#include "time_impl.h"
 #include "libc.h"
 
-const char *__strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm *tm, locale_t loc, int pad);
-
 size_t __wcsftime_l(wchar_t *restrict s, size_t n, const wchar_t *restrict f, const struct tm *restrict tm, locale_t loc)
 {
        size_t l, k;