فهرست منبع

move __utc string object to its own translation unit

having it in __tz.c caused gmtime[_r] and timegm to pull in all of the
time zone code despite having no need for it.
Rich Felker 11 ماه پیش
والد
کامیت
ef7d0ae212
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 0 1
      src/time/__tz.c
  2. 3 0
      src/time/__utc.c

+ 0 - 1
src/time/__tz.c

@@ -24,7 +24,6 @@ weak_alias(__tzname, tzname);
 
 
 static char std_name[TZNAME_MAX+1];
 static char std_name[TZNAME_MAX+1];
 static char dst_name[TZNAME_MAX+1];
 static char dst_name[TZNAME_MAX+1];
-const char __utc[] = "UTC";
 
 
 static int dst_off;
 static int dst_off;
 static int r0[5], r1[5];
 static int r0[5], r1[5];

+ 3 - 0
src/time/__utc.c

@@ -0,0 +1,3 @@
+#include "time_impl.h"
+
+const char __utc[] = "UTC";