all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jim Meyering <jim@meyering.net>
To: rms@gnu.org
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: emacs' turn: remove useless if-before-free tests
Date: Mon, 02 Jun 2008 13:22:19 +0200	[thread overview]
Message-ID: <87od6kcc9g.fsf@rho.meyering.net> (raw)
In-Reply-To: <E1K37ge-0001jY-9P@fencepost.gnu.org> (Richard M. Stallman's message of "Mon, 02 Jun 2008 06:54:48 -0400")

Richard M Stallman <rms@gnu.org> wrote:
>     Why *not* remove them?
>
> It is an unnecessary change and a risk of breaking on some platform.

In my initial message, I included what I thought was enough evidence
to demonstrate that such concerns are anachronistic.

> By contrsat, making xfree accept a null argument is unproblematic,
> since the function and its callers are 100% under our control.

Stefan,
I didn't think there could be a serious objection,
so went ahead and committed the change a few hours ago.

Let me know if you'd like me to revert that part.

If desired, I can propose a patch to do what gnulib's "free" module does,
i.e., detect (at configure time) the losing free function and work around
it via a replacement function that makes "free(NULL)" as a no-op.

That way, we can keep the clean-up without fear that it will cause
trouble even on crufty old systems like SunOS 4.  Though, even emacs
admits that SunOS4 is not supported -- it was removed from emacs' own
list of supported system back in January.  So I'd like to know what
system I'm trying to accommodate if I take the time to write such a patch.




  reply	other threads:[~2008-06-02 11:22 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-31 16:29 emacs' turn: remove useless if-before-free tests Jim Meyering
2008-06-01  1:25 ` Miles Bader
2008-06-01 11:10   ` Jim Meyering
2008-06-01 13:48     ` Miles Bader
2008-06-01 14:35       ` Jim Meyering
2008-06-01 14:51         ` David Kastrup
2008-06-01 15:57           ` Miles Bader
2008-06-01 14:03 ` Richard M Stallman
2008-06-01 14:22   ` Jim Meyering
2008-06-02 10:54     ` Richard M Stallman
2008-06-02 11:22       ` Jim Meyering [this message]
2008-06-01 21:41 ` Stefan Monnier
2008-06-02  0:56   ` YAMAMOTO Mitsuharu
2008-06-02  2:05     ` Miles Bader
2008-06-02  2:34       ` YAMAMOTO Mitsuharu
2008-06-02 16:30         ` Richard M Stallman
2008-06-02  2:26     ` Stefan Monnier
2008-06-02  6:14   ` Jim Meyering
2008-06-08 10:53     ` Emanuele Giaquinta
2008-06-08 12:31       ` Jim Meyering
2008-06-10 10:25         ` Jim Meyering
2008-06-12 22:54           ` Jim Meyering

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=87od6kcc9g.fsf@rho.meyering.net \
    --to=jim@meyering.net \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@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.