Subject: Re: rpcgen fix for -fshort-enums
To: Todd Vierling <tv@wasabisystems.com>
From: Richard Earnshaw <rearnsha@arm.com>
List: tech-toolchain
Date: 02/05/2002 16:11:18
> On Tue, 5 Feb 2002, Ben Harris wrote:
>
> "Hey Richard, look, here's yet another prime example of the legacy code that
> you don't think exists, which will cause more headaches with -fshort-enums
> than the `benefit' is worth!"
>
But of course no one has ever had to fix this code before to make it
portable to systems other than the original Sun that it originally ran
on...
Taking a random sample of one file:
RCS file: /cvsroot/basesrc/usr.bin/rpcgen/rpc_cout.c,v
revision 1.18
date: 2002/01/29 10:20:35; author: tv; state: Exp; lines: +6 -3
Make almost all tools compile and run properly on non-NetBSD hosts. (In
particular, most tools now run correctly on Solaris 7.)
revision 1.15
date: 1998/12/19 21:19:11; author: christos; state: Exp; lines: +4 -4
branches: 1.15.2; 1.15.8;
extra braces, char -> unsigned char
revision 1.6
date: 1996/10/01 04:13:53; author: cgd; state: Exp; lines: +8 -8
treat arrays used with XDR_INLINE as arrays of 'int32_t's, rather than
arrays of 'long's.