瀏覽代碼

move __loc_is_allocated declaration to locale_impl.h

Rich Felker 6 年之前
父節點
當前提交
7dc8df56c1
共有 2 個文件被更改,包括 1 次插入2 次删除
  1. 1 0
      src/internal/locale_impl.h
  2. 0 2
      src/locale/freelocale.c

+ 1 - 0
src/internal/locale_impl.h

@@ -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)

+ 0 - 2
src/locale/freelocale.c

@@ -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);