From: "Andreas Färber" <andreas.faerber@web.de>
To: Stefan Weil <sw@weilnetz.de>
Cc: Lee Essen <lee.essen@nowonline.co.uk>,
Stefan Hajnoczi <stefanha@gmail.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] fix incorrect bracket in tracetool
Date: Mon, 19 Mar 2012 13:49:38 +0100 [thread overview]
Message-ID: <4F672B62.1020105@web.de> (raw)
In-Reply-To: <4F672958.6080609@weilnetz.de>
Am 19.03.2012 13:40, schrieb Stefan Weil:
> Am 19.03.2012 13:05, schrieb Lee Essen:
>> On 19 Mar 2012, at 11:59, Stefan Hajnoczi wrote:
>>
>>> On Fri, Mar 16, 2012 at 12:29 PM, Lee Essen
>>> <lee.essen@nowonline.co.uk> wrote:
>>>> Signed-off-by: Lee Essen <lee.essen@nowonline.co.uk>
>>>>
>>>> ---
>>>>
>>>> scripts/tracetool | 2 +-
>>>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>>
>>> I'm going to spend some time today reviewing recent tracing patches.
>>> I'd prefer to move to a Python version of tracetool rather than worry
>>> about the shell quirks across all host platforms.
>>>
>>> If the Python rewrite cannot be merged for 1.1 then it makes sense to
>>> go with shell portability fix.
>>
>> Hi Stefan,
>>
>> While you are looking at this, there are a couple of other related
>> issues worth having in the back of your mind:
>>
>> 1. "self" is a reserved word in Solaris/Illumos trace, and it's used
>> in a few trace calls.
>> 2. "bool" isn't recognised by default, again used in a couple of
>> traces ... could be fixed by typedef, but switching to int is
>> probably better (imho)
>
> No. The correct solution is including stdbool.h which is provided by the
> compiler (gcc) and which defines bool and its values false and true.
AFAIU the issue is not with C code but with D code:
http://docs.oracle.com/cd/E19253-01/817-6223/chp-typeopexpr-2/index.html
Andreas
>
>
> More boolean variables should use bool instead of int, because that
> improves
> readability of the code and saves memory in structures.
>
> Regards,
> Stefan W.
>
prev parent reply other threads:[~2012-03-19 12:50 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-16 12:29 [Qemu-devel] [PATCH] fix incorrect bracket in tracetool Lee Essen
2012-03-16 12:44 ` Andreas Färber
2012-03-16 13:00 ` Lee Essen
2012-03-16 13:19 ` Paolo Bonzini
2012-03-16 13:28 ` Andreas Färber
2012-03-16 13:21 ` Andreas Färber
2012-03-16 13:18 ` Paolo Bonzini
2012-03-16 14:56 ` Eric Blake
2012-03-19 11:59 ` Stefan Hajnoczi
2012-03-19 12:05 ` Lee Essen
2012-03-19 12:32 ` Stefan Hajnoczi
2012-03-19 12:32 ` Andreas Färber
2012-03-19 13:35 ` Lee Essen
2012-03-20 16:59 ` Stefan Hajnoczi
2012-03-20 17:11 ` Lee Essen
2012-03-21 9:52 ` Stefan Hajnoczi
2012-03-19 12:40 ` Stefan Weil
2012-03-19 12:49 ` Andreas Färber [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=4F672B62.1020105@web.de \
--to=andreas.faerber@web.de \
--cc=lee.essen@nowonline.co.uk \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
--cc=sw@weilnetz.de \
/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).