2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
authorroland <roland>
Thu, 8 Sep 2005 08:09:07 +0000 (08:09 +0000)
committerroland <roland>
Thu, 8 Sep 2005 08:09:07 +0000 (08:09 +0000)
commit86c69b7abd977a1b75741d998ce77a73caff68a9
tree2fdb5a347b71075289ab699f17831769db68f392
parent04b5d0f4a5d6bd78dec7a6b3f4e3dce8a2c86aad
2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>

[BZ #1033]
* time/mktime.c: Import from gnulib.
The following macros are now consistent with other gnulib code.
This does not change mktime's behavior.
(TYPE_IS_INTEGER): New macro.
(time_t_is_integer): Use it.
(TYPE_TWOS_COMPLEMENT): New macro.
(twos_complement_arithmetic): Use it.
(TYPE_ONES_COMPLEMENT): New macro.
(TYPE_MINIMUM, TYPE_MAXIMUM): Now supports signed-magnitude.
mktime doesn't use this, but the code now matches other gnulib code.
(ranged_convert): Pacify GCC 4.0 in a different way, which
generates a few bytes less code.
(ranged_convert, __mktime_internal): When calling a function via a
pointer P, use P () rather than (*P) (), as we now assume C89 or
better.
time/mktime.c