diff mbox

[4/5] introduce QEMU_OPTIONS_GENERATE_HELPMSG

Message ID 1390881230-14033-5-git-send-email-akong@redhat.com
State New
Headers show

Commit Message

Amos Kong Jan. 28, 2014, 3:53 a.m. UTC
This patch introduced a new maroc, it will be used to dump the help
messages of all the options.

Signed-off-by: Amos Kong <akong@redhat.com>
---
 qemu-options-wrapper.h | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Markus Armbruster Feb. 11, 2014, 12:03 p.m. UTC | #1
Amos Kong <akong@redhat.com> writes:

> This patch introduced a new maroc, it will be used to dump the help
> messages of all the options.

"macro".  Also misspelled in PATCH 2/5.
Eric Blake Feb. 12, 2014, 8:41 p.m. UTC | #2
On 01/27/2014 08:53 PM, Amos Kong wrote:
> This patch introduced a new maroc, it will be used to dump the help
> messages of all the options.
> 
> Signed-off-by: Amos Kong <akong@redhat.com>
> ---
>  qemu-options-wrapper.h | 9 +++++++++
>  1 file changed, 9 insertions(+)

Again, this patch is useless on its own, I'd squash it with the first
client that defines QEMU_OPTIONS_GENERATE_HELPMSG.
diff mbox

Patch

diff --git a/qemu-options-wrapper.h b/qemu-options-wrapper.h
index c36a9ee..bb0ac87 100644
--- a/qemu-options-wrapper.h
+++ b/qemu-options-wrapper.h
@@ -34,6 +34,14 @@ 
 #define DEFHEADING(text)
 #define ARCHHEADING(text, arch_mask)
 
+#elif defined(QEMU_OPTIONS_GENERATE_HELPMSG)
+
+#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask)    \
+    stringify(opt_help),
+
+#define DEFHEADING(text)
+#define ARCHHEADING(text, arch_mask)
+
 #elif defined(QEMU_OPTIONS_GENERATE_OPTIONS)
 
 #define DEF(option, opt_arg, opt_enum, opt_help, arch_mask)     \
@@ -56,4 +64,5 @@ 
 #undef QEMU_OPTIONS_GENERATE_HELP
 #undef QEMU_OPTIONS_GENERATE_NAME
 #undef QEMU_OPTIONS_GENERATE_HASPARAM
+#undef QEMU_OPTIONS_GENERATE_HELPMSG
 #undef QEMU_OPTIONS_GENERATE_OPTIONS