qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [patch] add byteordered types


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [patch] add byteordered types
Date: Thu, 28 Aug 2008 10:36:04 +0200
User-agent: Thunderbird 2.0.0.16 (X11/20080723)

Anthony Liguori wrote:
> Yeah, AFAIK, it's the only way to enforce this sort of thing but it's
> also ugly.  If we were starting from scratch, I could see the value in
> it but there's already a ton of code that's not going to be using this
> mechanism that noone is going to convert.  That makes me think there
> isn't going to be a lot of value in it and will lead to a lot of overall
> confusion.

Ok, I'll drop the whole struct and accessors stuff and resend with
simple typedefs instead.  So you can use le* and be* types, but it
basically is a documentation thing without gcc actually checking stuff.
 And the existing cpu_to_* macros will do just fine ;)

cheers,
  Gerd





reply via email to

[Prev in Thread] Current Thread [Next in Thread]