From: malc <av1474@comtv.ru>
To: Roger Pau Monne <roger.pau@citrix.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] audio: fix bug in mixeng_template.h build on NetBSD
Date: Tue, 15 May 2012 00:51:58 +0400 (MSK) [thread overview]
Message-ID: <alpine.LNX.2.00.1205150047110.1604@linmac> (raw)
In-Reply-To: <4FB0CAE8.7070709@citrix.com>
On Mon, 14 May 2012, Roger Pau Monne wrote:
> malc escribi?:
> > On Fri, 11 May 2012, Roger Pau Monne wrote:
> >
> > > This is a bug fix for rc1, although I think this bug has been present
> > > for a long time.
> >
> > If there's a bug than it's within NetBSD itself, this issue has been
> > discussed few times (at least twice it hink) in the past, please search
> > the ML archives.
> >
> > [..snip..]
> >
>
> Hello,
>
> I've found
>
> http://copilotco.com/mail-archives/qemu.2008/msg11157.html
>
> and
>
> http://lists.gnu.org/archive/html/qemu-devel/2009-09/msg00255.html
>
> But none of them seems to reach a conclusion about how to solve this. The
> standard regarding stdint.h doesn't forbid having this types defined as both
> typedefs and preprocessor macros, so I don't think this is a NetBSD bug. As
> far as I can see, we have at least three ways of solving this:
7.20.1.1#1 (and similarly #2)
The typedef name intN_t designates a signed integer type with width N,
no padding bits, and a two's complement representation. Thus, int8_t
denotes such a signed integer type with a width of exactly 8 bit
>
> - Undef the macros.
> - Use something like concat(conv_natural_, uint8_t, _to_mono) (as done on the
> second thread I've posted).
> - Pass two separate arguments; instead of using:
>
> #define IN_T uint8_t
>
> use something like:
>
> #define BSIZE 8
> #define ITYPE uint
>
> But this will probably introduce quite some modifications.
>
> Anyway, how do you think it's best to solve this?
>
To be honest, i think if NetBSD breaks the standard then it can also
carry QEMU patches in its ports collection. Regardless, from my point
of view the last option is the only one viable (not that i will commit
the patch once presented, but i might consider it)
--
mailto:av1474@comtv.ru
prev parent reply other threads:[~2012-05-14 20:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-11 12:20 [Qemu-devel] [PATCH] audio: fix bug in mixeng_template.h build on NetBSD Roger Pau Monne
2012-05-11 19:01 ` malc
2012-05-14 9:05 ` Roger Pau Monne
2012-05-14 20:51 ` malc [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.00.1205150047110.1604@linmac \
--to=av1474@comtv.ru \
--cc=qemu-devel@nongnu.org \
--cc=roger.pau@citrix.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).