This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cpplib: macro expansion


 > 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]