Include <stdbool.h>. Use bool where appropriate, instead of int.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 24 Feb 2005 00:26:55 +0000 (00:26 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 24 Feb 2005 00:26:55 +0000 (00:26 +0000)
commit3477139eaafd3be1060c3516aadef39d1d48a83f
treeda48a419d9e455461f9272c55c14826904ac0101
parentf49bb33cff2c71408812c5ead2ac134163a11adb
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