[Top][All Lists]

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

Re: Recent changes to regex.c break bootstrapping

From: Chong Yidong
Subject: Re: Recent changes to regex.c break bootstrapping
Date: Mon, 20 Feb 2006 12:08:38 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

The 2006-02-19 change to regex.c, changing malloc and realloc to
xmalloc and xrealloc, doesn't do what it is apparently supposed to do,
since regex.c defines malloc as xmalloc, realloc as xrealloc, and free
as xfree when linked with Emacs.  For the case when it is not linked
with Emacs, I added xmalloc and xrealloc definitions (no need for
xfree, since its only purpose is to call BLOCK_INPUT), and put in the
same malloc -> xmalloc, realloc -> xrealloc redefinitions.

I hope this is correct way to go.  One worry: if another
non-Emacs-linked file #includes regex.c and defines its own xmalloc,
ugliness may ensue.

reply via email to

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