On 06/01/2017 07:41 AM, Marc-André Lureau wrote: > This may help to find where the origin of the type was declared in the > json (when greping isn't easy enough). > > Generates the following kind of C comment before types: > > /* /home/elmarco/src/qemu/qapi/introspect.json:94 */ > typedef struct SchemaInfo SchemaInfo;
Makes the generated code larger, but for a good cause. No real impact to the binary size (well, debug information may be slightly larger based on line numbers getting higher, but that's in the noise). > > Signed-off-by: Marc-André Lureau <[email protected]> > --- > scripts/qapi.py | 12 +++++++++--- > scripts/qapi-event.py | 2 +- > scripts/qapi-types.py | 18 +++++++++--------- > 3 files changed, 19 insertions(+), 13 deletions(-) Reviewed-by: Eric Blake <[email protected]> -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature
