This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: [RFA] __cdecl changes for Cygwin
- To: newlib at sources dot redhat dot com
- Subject: Re: [RFA] __cdecl changes for Cygwin
- From: Chris Faylor <cgf at cygnus dot com>
- Date: Wed, 6 Sep 2000 16:51:59 -0400
- References: <20000906135719.A25490@cygnus.com>
On Wed, Sep 06, 2000 at 01:57:19PM -0400, Chris Faylor wrote:
>All of the functions that cygwin exports use (unfortunately) the
>Microsoft __cdecl attribute. However, this is not explicitly set in
>any of the newlib header files. This patch fixes that.
>
>This is pretty Cygwin specific except for the addition of the new
>_EXFUNVAR macro.
>
>Wed Sep 6 13:49:51 2000 Christopher Faylor <cgf@cygnus.com>
>
> * libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
> (_EXFUNVAR): New macro for defining a variable pointing to a function.
> * libc/include/stdlib.h: Use _EXFUNVAR.
I found a couple of other minor problems and discussed them with Jeff
Johnston. So, I've checked in the patch below.
cgf
Wed Sep 6 15:06:40 2000 Christopher Faylor <cgf@cygnus.com>
* Makefile.am: Fix space vs. tab problem in install-data-local.
* Makefile.in: Regenerate.
Wed Sep 6 13:49:51 2000 Christopher Faylor <cgf@cygnus.com>
* libc/include/_ansi.h (_EXFUN): Define specially for __CYGWIN__.
(_EXPARM): New macro for defining a function parameter.
* libc/include/stdlib.h: Use _EXPARM.
* libc/stdlib/mallocr.c: Don't build cfree for Cygwin.