delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2011/09/16/21:05:45

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
X-Authenticated: #27081556
X-Provags-ID: V01U2FsdGVkX19Wg6ds3jtWH+SR9BtWcU+najjd2Po52KK9JQzMCc
AaieNkNnvMrmZg
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
To: djgpp-workers AT delorie DOT com
Subject: Re: more NULL fixes
Date: Sat, 17 Sep 2011 03:01:00 +0200
User-Agent: KMail/1.9.10
References: <CAA2C=vAS=ZXeN=FsucnEjyOnu9sRSRLodnsbERVxdbwhq03_Ag AT mail DOT gmail DOT com>
In-Reply-To: <CAA2C=vAS=ZXeN=FsucnEjyOnu9sRSRLodnsbERVxdbwhq03_Ag@mail.gmail.com>
MIME-Version: 1.0
Message-Id: <201109170301.00306.juan.guerrero@gmx.de>
X-Y-GMX-Trusted: 0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p8H15h8t011525
Reply-To: djgpp-workers AT delorie DOT com

Am Freitag, 16. September 2011 schrieb Ozkan Sezer:
> These two showed themselves after yesterday's stdlib.h NULL patch.
[snip]

OFYI, I committed the followingpatch.

Regards,
Juan M. Guerrero


2011-09-17  Juan Manuel Guerrero  <juan DOT guerrero AT gmx DOT de>

        * src/libc/compat/stdlib/alloca.c:  Remove superflous NULL macro
	definition.  From Ozkan Sezer <sezeroz AT gmail DOT com>



Index: djgpp/src/libc/compat/stdlib/alloca.c
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/compat/stdlib/alloca.c,v
retrieving revision 1.1
diff -U 5 -r1.1 alloca.c
--- djgpp/src/libc/compat/stdlib/alloca.c	11 Jan 1996 04:02:06 -0000	1.1
+++ djgpp/src/libc/compat/stdlib/alloca.c	17 Sep 2011 00:41:23 -0000
@@ -32,12 +32,10 @@
 /* If your stack is a linked list of frames, you have to
    provide an "address metric" ADDRESS_FUNCTION macro.  */
 
 #define ADDRESS_FUNCTION(arg) &(arg)
 
-#define	NULL	0
-
 /* Define STACK_DIRECTION if you know the direction of stack
    growth for your system; otherwise it will be automatically
    deduced at run-time.
 
    STACK_DIRECTION > 0 => grows toward higher addresses

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019