On 04/27/2018 02:28 PM, Laszlo Ersek wrote: > We'll soon need an enumeration type that lists all the softmmu targets > that QEMU (the project) supports. Introduce @SysEmuTarget to > "common.json". > > The enum constant @x86_64 doesn't match the QAPI convention of preferring > hyphen ("-") over underscore ("_"). This is intentional; the @SysEmuTarget > constants are supposed to produce QEMU executable names when stringified > and appended to the "qemu-system-" prefix. Put differently, the > replacement text of the TARGET_NAME preprocessor macro must be possible to > look up in the list of (stringified) enum constants. > > Like other enum types, @SysEmuTarget too can be used for discriminator > fields in unions. For the @i386 constant, a C-language union member called > "i386" would be generated. On mingw build hosts, "i386" is a macro > however. Add "i386" to "polluted_words" at once. > > Cc: "Daniel P. Berrange" <berra...@redhat.com> > Cc: Eric Blake <ebl...@redhat.com> > Cc: Markus Armbruster <arm...@redhat.com> > Signed-off-by: Laszlo Ersek <ler...@redhat.com> > --- > > Notes: > PATCHv3: > > - copy the suggested (shorter) Notes: wrt. underscore use in @x86_64 to > the schema, and move the original (longer) schema Notes: to the commit > message [Eric]
Thanks; that looks better. Reviewed-by: Eric Blake <ebl...@redhat.com> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature