move __loc_is_allocated declaration to locale_impl.h
authorRich Felker <dalias@aerifal.cx>
Sun, 9 Sep 2018 04:34:31 +0000 (00:34 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:31 +0000 (14:34 -0400)
src/internal/locale_impl.h
src/locale/freelocale.c

index d5a3cc9..a086304 100644 (file)
@@ -23,6 +23,7 @@ const struct __locale_map *__get_locale(int, const char *);
 const char *__mo_lookup(const void *, size_t, const char *);
 const char *__lctrans(const char *, const struct __locale_map *);
 const char *__lctrans_cur(const char *);
+int __loc_is_allocated(locale_t);
 
 #define LCTRANS(msg, lc, loc) __lctrans(msg, (loc)->cat[(lc)])
 #define LCTRANS_CUR(msg) __lctrans_cur(msg)
index c2ae1a3..e75acd6 100644 (file)
@@ -2,8 +2,6 @@
 #include "locale_impl.h"
 #include "libc.h"
 
-int __loc_is_allocated(locale_t);
-
 void freelocale(locale_t l)
 {
        if (__loc_is_allocated(l)) free(l);