This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: macro expansion
- To: NeilB at earthling dot net, gcc-patches at gcc dot gnu dot org
- Subject: Re: cpplib: macro expansion
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sun, 16 Jul 2000 09:43:53 -0400 (EDT)
- Cc: rra at stanford dot edu, zack at wolery dot cumb dot org
> From: Neil Booth <NeilB@earthling.net>
>
> Also, a small update to README.Portability. Kaveh had success
> compiling code on a K+R compiler that uses "pointers to functions
> returning void". This has relevance to cpplib; our directive handlers
> currently are pointers to functions returning int. The int is a dummy
> from fear that changing it to void would cause compilation to fail on
> some compilers. It might be worth switching to void if only to see
> what the real score is and if anyone complains.
As I mentioned to Neil in private email, we're already using pointers
to functions returning void in collect2.c, function.c, and several
other places, and have heard no complaints. Using them in cpp makes
gcc no less portable than it already is.
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions