From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W80YU-0000ky-4L for qemu-devel@nongnu.org; Mon, 27 Jan 2014 23:45:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W80YN-0003xN-NO for qemu-devel@nongnu.org; Mon, 27 Jan 2014 23:45:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:61784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W80YN-0003x4-FT for qemu-devel@nongnu.org; Mon, 27 Jan 2014 23:45:39 -0500 From: Amos Kong Date: Tue, 28 Jan 2014 11:53:49 +0800 Message-Id: <1390881230-14033-5-git-send-email-akong@redhat.com> In-Reply-To: <1390881230-14033-1-git-send-email-akong@redhat.com> References: <1390881230-14033-1-git-send-email-akong@redhat.com> Subject: [Qemu-devel] [PATCH 4/5] introduce QEMU_OPTIONS_GENERATE_HELPMSG List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jyang@redhat.com, laine@redhat.com, libvir-list@redhat.com, armbru@redhat.com, rjones@redhat.com, anthony@codemonkey.ws, pbonzini@redhat.com, lcapitulino@redhat.com This patch introduced a new maroc, it will be used to dump the help messages of all the options. Signed-off-by: Amos Kong --- qemu-options-wrapper.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 1.8.4.2