]> git.ipfire.org Git - thirdparty/qemu.git/commit
qapi: Simplify inclusion cycle detection
authorMarkus Armbruster <armbru@redhat.com>
Tue, 9 Jun 2015 14:54:09 +0000 (16:54 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 18 Jun 2015 12:12:34 +0000 (14:12 +0200)
commita1366087270b312d94ff8c4031395a4218f160d4
tree58957c7c29d8b8f732188e45fe119f365a3607fe
parent8608d2525186062099a38971c276752e7a38903a
qapi: Simplify inclusion cycle detection

We maintain a stack of filenames in include_hist for convenient cycle
detection.

As error_path() demonstrates, the same information is readily
available in the expr_info, so just use that, and drop include_hist.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
scripts/qapi.py