Target deprecation, round three

Fergus Henderson fjh@cs.mu.OZ.AU
Tue Feb 25 03:26:00 GMT 2003


On 24-Feb-2003, Zack Weinberg <zack@codesourcery.com> wrote:
> There are four possible ways to get around this problem:
> 
> - Replace all these character constants with integer or enumeration
>   constants.  I consider this infeasible, it would make these parts of
>   the compiler much harder to maintain.

Well, sure, don't use integer constants directly, use #defines!

I don't see why e.g.

	if (c == SLASH_CHAR)

is so much harder to maintain than

	if (c == '/')

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.



More information about the Gcc mailing list