Mixing function pointers and regular functions with the _EXFUN macro

Jerker Bäck jerker.back@gmail.com
Thu Dec 17 03:43:00 GMT 2009


> Leave the original _EXPARM macro alone and create a new macro: _EXFNPTR
> which you can define as you have changed _EXPARM.  Use the new macro in
> your patch and please post the finished patch "here" and not in the bug.
>   I am going to close bugzillas from now on immediately.
> 
> If you can do this by tomorrow afternoon, I'll get the patch in for the
> snapshot.
> 
> -- Jeff J.

OK, thanks!

I agree completely with Craig that _EXFNPTR is a better name. I also think
that the original idea from 2000 is a clever model, since it solves a common
issue when compiling unix source in Windows. Just note that for the patch to
work, it has to be consistently applied to all function pointers, leaving
the old macro name obsolete. Also note the changes in unistd.h.

Cheers
Jerker B



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newlib_exparm.diff
URL: <http://sourceware.org/pipermail/newlib/attachments/20091217/7c5ab6d3/attachment.ksh>


More information about the Newlib mailing list