Include <stdbool.h>. Use bool where appropriate,
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Mar 2005 18:39:39 +0000 (18:39 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Mar 2005 18:39:39 +0000 (18:39 +0000)
commit4f5d6947d90a65c2b577ef2ca7adf4e413cfe6b6
tree86b2557413120ec40336f2109b3e7ef6ca52087e
parent34d76dfed259882ddd510c8221c609756108d07a
Include <stdbool.h>.  Use bool where appropriate,
instead of int.
(my_strftime): Do not mishandle years close to INT_MAX, by doing
the right thing even if adding 1900 would overflow.  Similarly
for tm_mon + 1 and tm_yday + 1.
Make %Y always equivalent to %C%y, and similarly for %G and %g.
(DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
(DO_SIGNED_NUMBER): New macro.
(my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
lib/strftime.c