This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Today's K&R problem ... cpphash.c uses `signed'
- To: Neil Booth <NeilB at earthling dot net>
- Subject: Re: Today's K&R problem ... cpphash.c uses `signed'
- From: Zack Weinberg <zack at wolery dot cumb dot org>
- Date: Thu, 13 Jul 2000 14:58:19 -0700
- Cc: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, gcc-patches at gcc dot gnu dot org
- References: <200007131920.PAA18027@caip.rutgers.edu> <E13Cqkd-0001WW-00@monkey.rosenet.ne.jp>
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