This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] |
A better way to write this changeLog is:Ok. I'll be more laconic.
Function _cpp_get_file_stat has to be extern and (IMHO) therefore somewhat universal. I see no reason to limit its interface.+ struct stat *st = _cpp_get_file_stat(file); Why not make a function which returns a pointer to the modification date instead of returning one to the stat?
Also why don't you just use ctime or asctime instead of spelling it out?This is correct. Describing __DATE__ and __TIME__ predefined macro in section 6.10.8, the C99 Standard refers asctime. Thus using asctime(localtime()) seems to be suitable solution. However the original idea was to follow existing cpplib approach for __DATE__ and __TIME__ string generation.
Thanks! - Grigory
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |