diff options
| author | Wenchao Xia <wenchaoqemu@gmail.com> | 2014-03-04 18:44:33 -0800 |
|---|---|---|
| committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-03-11 09:07:41 -0400 |
| commit | 515b943a91db6c9faf9e35377c18db9ca32ecb40 (patch) | |
| tree | b851f9774508a2f7c3e5cdb95e802621d3f44e78 /scripts/qapi-types.py | |
| parent | 4b35991a3bd5f9e03333d5b1bd4a7bcf9941aac5 (diff) | |
| download | focaccia-qemu-515b943a91db6c9faf9e35377c18db9ca32ecb40.tar.gz focaccia-qemu-515b943a91db6c9faf9e35377c18db9ca32ecb40.zip | |
qapi script: remember line number in schema parsing
Before this patch, 'QAPISchemaError' scans whole input until 'pos' to get error line number. After this patch, the scan is avoided since line number is remembered in schema parsing. This patch also benefits other error report functions, which would be introduced later. Signed-off-by: Wenchao Xia <wenchaoqemu@gmail.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'scripts/qapi-types.py')
0 files changed, 0 insertions, 0 deletions