all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: emacs-devel@gnu.org
Subject: Re: Booleans
Date: Mon, 16 Dec 2013 05:44:41 +0200	[thread overview]
Message-ID: <83haa9e9xy.fsf@gnu.org> (raw)
In-Reply-To: <52AE3556.6080704@cs.ucla.edu>

> Date: Sun, 15 Dec 2013 15:03:50 -0800
> From: Paul Eggert <eggert@cs.ucla.edu>
> CC: emacs-devel@gnu.org
> 
> > should have been a separate commit, as
> > it is not a mechanical replacement, far from it.
> 
> It was a judgment call.  Perhaps I should have separated it
> out, though it's no big deal.  It was a case of an int value
> being used as a boolean with values 0 and -1.

Yes, but you also removed several struct members in that hunk.

> >   -#if 0
> >   +#if false
> > 
> > ... I'm afraid I don't see the point
> 
> I tried to be reasonably systematic in replacing uses of 0
> and 1 as booleans in the set of files that I was looking at;
> this included the use of booleans in preprocessor
> expressions.  It would be an odd style to use '0' for false
> preprocessor expressions, while using 'false' for false
> expressions everywhere else.

"#if false" looks very odd to me, I don't think I've ever seen that.



  parent reply	other threads:[~2013-12-16  3:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-15 17:40 Booleans Eli Zaretskii
2013-12-15 23:03 ` Booleans Paul Eggert
2013-12-16  3:43   ` Booleans Stefan Monnier
2013-12-16  3:44   ` Eli Zaretskii [this message]
2013-12-16  7:39   ` Booleans Jarek Czekalski
2013-12-16 17:28     ` Booleans Paul Eggert

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=83haa9e9xy.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    /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.