Mail Archives: djgpp-workers/1997/09/24/05:51:26
On Wed, 24 Sep 1997, Molnar Laszlo wrote:
> if (!pl)
Shouldn't this if go away? This patch leaves the following code:
if (!pl)
l1->next = pl;
pl = l1;
I think it should be just this:
l1->next = pl;
pl - l1;
The first time through, l1->next gets set to NULL, since pl is NULL.
Then each new node gets inserted at the beginning.
Oh, and btw, pl should be reinitialized to NULL with the __bss_count
trick, in case it one day gets linked into Emacs (or any other program
that restarts itsels).
- Raw text -