emacs-devel
[Top][All Lists]
Advanced

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

Re: HAVE_FTIME, src/m/vax.h, and src/m in general


From: Paul Eggert
Subject: Re: HAVE_FTIME, src/m/vax.h, and src/m in general
Date: Sun, 20 May 2012 20:06:07 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

On 05/20/2012 06:54 PM, Stefan Monnier wrote:
> Why use
> 
>    #define BITS_PER_SHORT BITS_OF_SIGNED_MAX (SHRT_MAX)
> 
> rather than
> 
>    #define BITS_PER_SHORT (CHAR_BIT * sizeof (short))

Mainly because sizeof does not work in '#if', and these
macros must work in '#if'.  Or at least some of them must
do so, and we might as well have them all work.

There's a brief comment to this effect in the description of
BITS_OF_SIGNED_MAX.



reply via email to

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