This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
libc/time mktime.c
- From: roland at sourceware dot org
- To: glibc-cvs at sources dot redhat dot com
- Date: 8 Sep 2005 08:09:08 -0000
- Subject: libc/time mktime.c
CVSROOT: /cvs/glibc
Module name: libc
Changes by: roland@sources.redhat.com 2005-09-08 08:09:08
Modified files:
time : mktime.c
Log message:
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.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/time/mktime.c.diff?cvsroot=glibc&r1=1.65&r2=1.66