From 77bd1119ba43dbd0e73014037a08f8b49136bf6f Mon Sep 17 00:00:00 2001 From: Michael Ellerman Date: Mon, 19 Dec 2011 17:19:30 +1100 Subject: vl.c: Move option generation logic into a wrapper file In vl.c and qemu-options.h we define macros and include qemu-options.def in order to generate different content. Move the bulk of the def'ing and undef'ing into a wrapper, this will make it cleaner when we add another macro in the next patch. AFAICS undefining GEN_DOCS services no purpose, but I've left it for now. Signed-off-by: Michael Ellerman Signed-off-by: Anthony Liguori --- qemu-options.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'qemu-options.h') diff --git a/qemu-options.h b/qemu-options.h index c96f994c9b..89a009ee96 100644 --- a/qemu-options.h +++ b/qemu-options.h @@ -29,13 +29,8 @@ #define _QEMU_OPTIONS_H_ enum { -#define DEF(option, opt_arg, opt_enum, opt_help, arch_mask) \ - opt_enum, -#define DEFHEADING(text) -#include "qemu-options.def" -#undef DEF -#undef DEFHEADING -#undef GEN_DOCS +#define QEMU_OPTIONS_GENERATE_ENUM +#include "qemu-options-wrapper.h" }; #endif -- cgit v1.2.1