From: Paolo Bonzini <pbonzini@redhat.com>
To: Amos Kong <akong@redhat.com>
Cc: vilanova@ac.upc.edu, stefanha@gmail.com, aliguori@us.ibm.com,
mdroth@linux.vnet.ibm.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] qapi: add struct strList and visit_type_strList()
Date: Wed, 24 Apr 2013 18:11:55 +0200 [thread overview]
Message-ID: <5178044B.5020708@redhat.com> (raw)
In-Reply-To: <1366819685-24106-1-git-send-email-akong@redhat.com>
Il 24/04/2013 18:08, Amos Kong ha scritto:
> diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py
> index 9e19920..e449a14 100644
> --- a/scripts/qapi-types.py
> +++ b/scripts/qapi-types.py
> @@ -276,6 +276,7 @@ fdecl.write(mcgen('''
> #include <stdbool.h>
> #include <stdint.h>
>
> +struct strList;
> ''',
> guard=guardname(h_file)))
>
> diff --git a/scripts/qapi.py b/scripts/qapi.py
> index afc5f32..14f9f4d 100644
> --- a/scripts/qapi.py
> +++ b/scripts/qapi.py
> @@ -166,11 +166,11 @@ def c_fun(name, protect=True):
> return c_var(name, protect).replace('.', '_')
>
> def c_list_type(name):
> - return '%sList' % name
> + return 'struct %sList' % name
>
> def type_name(name):
> if type(name) == list:
> - return c_list_type(name[0])
> + return '%sList' % name[0]
> return name
This second change is needed to generate the correct function names,
right? If so,
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Paolo
next prev parent reply other threads:[~2013-04-24 16:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-15 20:04 [Qemu-devel] [qapi] Cannot use list of strings Lluís Vilanova
2013-04-15 21:07 ` Lluís Vilanova
2013-04-16 8:49 ` Stefan Hajnoczi
2013-04-16 8:54 ` Paolo Bonzini
2013-04-16 10:13 ` Amos Kong
2013-04-16 12:36 ` Eric Blake
2013-04-16 10:46 ` Lluís Vilanova
2013-04-16 14:50 ` mdroth
2013-04-17 8:33 ` Amos Kong
2013-04-19 5:26 ` [Qemu-devel] [RFC PATCH] qapi: introduce strList and visit_type_strList() (was Re: [qapi] Cannot use list of strings) Amos Kong
2013-04-24 16:08 ` [Qemu-devel] [PATCH v2] qapi: add struct strList and visit_type_strList() Amos Kong
2013-04-24 16:11 ` Paolo Bonzini [this message]
2013-04-24 16:48 ` Amos Kong
2013-04-24 16:46 ` mdroth
2013-04-26 10:12 ` Amos Kong
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=5178044B.5020708@redhat.com \
--to=pbonzini@redhat.com \
--cc=akong@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
--cc=vilanova@ac.upc.edu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.