[RFC][PATCH] combining header files

Geert Uytterhoeven geert at linux-m68k.org
Wed Mar 9 20:40:13 EST 2005


On Wed, 9 Mar 2005, Alan Modra wrote:
> On Wed, Mar 09, 2005 at 12:03:43PM +1100, Stephen Rothwell wrote:
> > I would just like to start a discussion about consolidating (some of) the
> > ppc and ppc64 header files.
> 
> Marvellous!  In case it isn't completely obvious, you can often share
> structure definitions between ppc32 and ppc64 by judicious selection of
> types.  eg.
> 
> struct stays_the_same {
>   long long some_64bit_var;
>   int some_32bit_var;
> }

If size matters, why not use an explicitly sized type like s64 to make it
explicit?

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds



More information about the Linuxppc-dev mailing list