[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs current-time-string core dump on 64-bit hosts

From: Paul Eggert
Subject: Re: Emacs current-time-string core dump on 64-bit hosts
Date: Wed, 29 Mar 2006 23:57:33 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Richard Stallman <address@hidden> writes:

>     +#ifdef __GLIBC__
>     +# define TM_YEAR_IN_ASCTIME_RANGE(tm_year) ((tm_year) <= INT_MAX - 1900)
> In the future, we will want the condition to change.
> So I think there should be a separate macro to control this.

Something like this, without the #ifdef?

  #define TM_YEAR_IN_ASCTIME_RANGE(tm_year) \
    (ASCTIME_YEAR_MIN <= (tm_year) && (tm_year) <= ASCTIME_YEAR_MAX)

We would have Autoconf deduce ASCTIME_YEAR_MIN and ASCTIME_YEAR_MAX by
trying to run little test programs that crash, using binary search to
deduce the min and max values.

Yes, something like that should work, though it'd take some testing to
make sure that the little test programs crash reliably.  (I assume
it's not that high of a priority, though.)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]