This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
W dniu 2014-09-04 13:59, Corinna Vinschen pisze:
In this scenario, since _gmtime_r will be included as soon as localtime_r is used, the arrays would just go into the _gmtime_r source file as well.
Well, it's probably not that easy. There's also __tzcalc_limits(), which also uses this array. This function is used by mktime(), _tzset_r() and - indirectly - by localtime(). That's why I think it would be reasonable to move this array to separate file - when you use mktime(), you don't need gmtime(). The other option is to define the contents of this array as #define macro in local.h and just have the array in two files, but that's not very elegant...
Regards, FCh
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |