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: Today's K&R problem ... cpphash.c uses `signed'


On Fri, Jul 14, 2000 at 06:42:35AM +0900, Neil Booth wrote:
> I'm thinking of starting a file in the GCC directory called
> README.Portability or PORTABLE.CODE or some such.  It would contain a
> few tips about writing portable code that can compile on the whole
> range of compilers we have to compile on, based on past experience.
> Things like this signed problem, unary +, empty arguments, etc. etc.
> 
> It will probably be mostly for my own benefit, but could come in
> useful as a reference for others too further down the line.  The
> problem at the moment is that this knowledge is just inside various
> people's heads, which has the effect that the problems keep recurring.
> 
> Would a patch be accepted to start such a file?

I think this is an excellent idea.  I like README.Portability, but the
name is your choice.

I'll proofread and add my own bitter experiences.

zw

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