all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Eli Zaretskii <eliz@gnu.org>, Emacs Development <emacs-devel@gnu.org>
Subject: Re: HAVE_FTIME, src/m/vax.h, and src/m in general
Date: Sun, 20 May 2012 20:06:07 -0700	[thread overview]
Message-ID: <4FB9B11F.8070205@cs.ucla.edu> (raw)
In-Reply-To: <jwv62bqxpuh.fsf-monnier+emacs@gnu.org>

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	other threads:[~2012-05-21  3:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-19  9:01 HAVE_FTIME, src/m/vax.h, and src/m in general Paul Eggert
2012-05-19 12:36 ` Eli Zaretskii
2012-05-19 18:53 ` Stefan Monnier
2012-05-20 18:19   ` Paul Eggert
2012-05-21  1:54     ` Stefan Monnier
2012-05-21  3:06       ` Paul Eggert [this message]
2012-05-21 15:53         ` Stefan Monnier
2012-05-22  7:08           ` bug#11538: Decommissioning src/m Paul Eggert
2012-05-22 12:48             ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FB9B11F.8070205@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.