* [Qemu-devel] QEMU help output broken
@ 2009-03-28 19:19 Anthony Liguori
2009-03-28 20:05 ` [Qemu-devel] " Blue Swirl
0 siblings, 1 reply; 4+ messages in thread
From: Anthony Liguori @ 2009-03-28 19:19 UTC (permalink / raw)
To: qemu-devel; +Cc: Blue Swirl
DEFOPTION() is turning the \n into a 'n' so everything ends up on the
same line.
gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)
Passing arbitrary text into a macro looks very fishy to me. CPP still
uses a C tokenizer IIRC so you need at least lexically correct C.
Regards,
Anthony Liguori
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] Re: QEMU help output broken
2009-03-28 19:19 [Qemu-devel] QEMU help output broken Anthony Liguori
@ 2009-03-28 20:05 ` Blue Swirl
2009-03-28 20:19 ` Blue Swirl
0 siblings, 1 reply; 4+ messages in thread
From: Blue Swirl @ 2009-03-28 20:05 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel
On 3/28/09, Anthony Liguori <anthony@codemonkey.ws> wrote:
> DEFOPTION() is turning the \n into a 'n' so everything ends up on the same
> line.
>
> gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)
>
> Passing arbitrary text into a macro looks very fishy to me. CPP still uses
> a C tokenizer IIRC so you need at least lexically correct C.
No, it's a problem with the shell script parser hxtool. The text is
already broken in the parsed file (for example sparc-softmmu/)
qemu-options.h:
DEF("M", HAS_ARG, QEMU_OPTION_M,
"-M machine select emulated machine (-M ? for list)n")
I'm pretty certain that both Perl and C hxtool parsers did work.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] Re: QEMU help output broken
2009-03-28 20:05 ` [Qemu-devel] " Blue Swirl
@ 2009-03-28 20:19 ` Blue Swirl
2009-03-28 22:18 ` malc
0 siblings, 1 reply; 4+ messages in thread
From: Blue Swirl @ 2009-03-28 20:19 UTC (permalink / raw)
To: Anthony Liguori; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 806 bytes --]
On 3/28/09, Blue Swirl <blauwirbel@gmail.com> wrote:
> On 3/28/09, Anthony Liguori <anthony@codemonkey.ws> wrote:
> > DEFOPTION() is turning the \n into a 'n' so everything ends up on the same
> > line.
> >
> > gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)
> >
> > Passing arbitrary text into a macro looks very fishy to me. CPP still uses
> > a C tokenizer IIRC so you need at least lexically correct C.
>
>
> No, it's a problem with the shell script parser hxtool. The text is
> already broken in the parsed file (for example sparc-softmmu/)
> qemu-options.h:
>
> DEF("M", HAS_ARG, QEMU_OPTION_M,
> "-M machine select emulated machine (-M ? for list)n")
>
> I'm pretty certain that both Perl and C hxtool parsers did work.
This patch fixes the problem, but only for sh == bash case.
[-- Attachment #2: fix_hxtool_munging.diff --]
[-- Type: plain/text, Size: 713 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] Re: QEMU help output broken
2009-03-28 20:19 ` Blue Swirl
@ 2009-03-28 22:18 ` malc
0 siblings, 0 replies; 4+ messages in thread
From: malc @ 2009-03-28 22:18 UTC (permalink / raw)
To: qemu-devel
On Sat, 28 Mar 2009, Blue Swirl wrote:
> On 3/28/09, Blue Swirl <blauwirbel@gmail.com> wrote:
> > On 3/28/09, Anthony Liguori <anthony@codemonkey.ws> wrote:
> > > DEFOPTION() is turning the \n into a 'n' so everything ends up on the same
> > > line.
> > >
> > > gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)
> > >
> > > Passing arbitrary text into a macro looks very fishy to me. CPP still uses
> > > a C tokenizer IIRC so you need at least lexically correct C.
> >
> >
> > No, it's a problem with the shell script parser hxtool. The text is
> > already broken in the parsed file (for example sparc-softmmu/)
> > qemu-options.h:
> >
> > DEF("M", HAS_ARG, QEMU_OPTION_M,
> > "-M machine select emulated machine (-M ? for list)n")
> >
> > I'm pretty certain that both Perl and C hxtool parsers did work.
>
> This patch fixes the problem, but only for sh == bash case.
No, it should be fine everywhere:
http://www.opengroup.org/onlinepubs/000095399/utilities/read.html
--
mailto:av1474@comtv.ru
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-03-28 22:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-28 19:19 [Qemu-devel] QEMU help output broken Anthony Liguori
2009-03-28 20:05 ` [Qemu-devel] " Blue Swirl
2009-03-28 20:19 ` Blue Swirl
2009-03-28 22:18 ` malc
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).