diff options
| author | BenoƮt Canet | 2014-05-16 12:51:56 +0200 |
|---|---|---|
| committer | Luiz Capitulino | 2014-05-16 16:35:59 +0200 |
| commit | 24fd848950b44de7e2d71fb69ba52b90d6acb220 (patch) | |
| tree | 38e6e587a193ef360c1132e6531fc21c2069fca7 /tests/qapi-schema/include-repetition.exit | |
| parent | monitor: Add netdev_del id argument completion. (diff) | |
| download | qemu-24fd848950b44de7e2d71fb69ba52b90d6acb220.tar.gz qemu-24fd848950b44de7e2d71fb69ba52b90d6acb220.tar.xz qemu-24fd848950b44de7e2d71fb69ba52b90d6acb220.zip | |
qapi: skip redundant includes
The purpose of this change is to help create a json file containing
common definitions; each bit of generated C code must be emitted
only one time.
A second history global to all QAPISchema instances has been added
to detect when a file is included more than one time and skip these
includes.
It does not act as a stack and the changes made to it by the
__init__ function are propagated back to the caller so it's really
a global state.
Signed-off-by: Benoit Canet <benoit@irqsave.net>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'tests/qapi-schema/include-repetition.exit')
| -rw-r--r-- | tests/qapi-schema/include-repetition.exit | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/qapi-schema/include-repetition.exit b/tests/qapi-schema/include-repetition.exit new file mode 100644 index 0000000000..573541ac97 --- /dev/null +++ b/tests/qapi-schema/include-repetition.exit @@ -0,0 +1 @@ +0 |
