qemu-e2k/scripts
Markus Armbruster 8c3f8e7721 qapi-visit: Fix generated code when schema has forward refs
The visit_type_implicit_FOO() are generated on demand, right before
their first use.  Used by visit_type_STRUCT_fields() when STRUCT has
base FOO, and by visit_type_UNION() when flat UNION has member a FOO.

If the schema defines FOO after its first use as struct base or flat
union member, visit_type_implicit_FOO() calls
visit_type_implicit_FOO() before its definition, which doesn't
compile.

Rearrange qapi-schema-test.json to demonstrate the bug.

Fix by generating the necessary forward declaration.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
2015-09-04 15:47:13 +02:00
..
kvm
qemu-guest-agent
qmp scripts: Add support for path as argument of qom-tree 2015-06-19 10:29:14 +02:00
tracetool
acpi_extract_preprocess.py
acpi_extract.py
analyse-9p-simpletrace.py
analyze-migration.py Teach analyze-migration.py about section footers 2015-06-12 06:54:01 +02:00
check-qerror.sh
checkpatch.pl
cleanup-trace-events.pl
coverity-model.c coverity: fix address_space_rw model 2015-05-05 10:42:11 +02:00
create_config
disas-objdump.pl
dump-guest-memory.py
extract-vsssdk-headers
feature_to_c.sh
get_maintainer.pl
gtester-cat
hxtool
make_device_config.sh
make-release
ordereddict.py
qapi-commands.py qapi: Drop unused and useless parameters and variables 2015-09-04 15:47:13 +02:00
qapi-event.py qapi: Drop unused and useless parameters and variables 2015-09-04 15:47:13 +02:00
qapi-types.py qapi: Generate a nicer struct for flat unions 2015-09-04 15:47:13 +02:00
qapi-visit.py qapi-visit: Fix generated code when schema has forward refs 2015-09-04 15:47:13 +02:00
qapi.py qapi: Drop unused and useless parameters and variables 2015-09-04 15:47:13 +02:00
qemu-binfmt-conf.sh
qemu-gdb.py
qtest.py
refresh-pxe-roms.sh
shaderinclude.pl opengl: add shader build infrastructure 2015-05-05 09:03:32 +02:00
signrom.py
simpletrace.py
switch-timer-api
texi2pod.pl
tracetool.py
update-acpi.sh
update-linux-headers.sh virtio-input: move sys/ioctl.h include 2015-07-16 17:34:41 +02:00
vmstate-static-checker.py