summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWenchao Xia <wenchaoqemu@gmail.com>2014-03-04 18:44:33 -0800
committerLuiz Capitulino <lcapitulino@redhat.com>2014-03-11 09:07:41 -0400
commit515b943a91db6c9faf9e35377c18db9ca32ecb40 (patch)
treeb851f9774508a2f7c3e5cdb95e802621d3f44e78 /tests
parent4b35991a3bd5f9e03333d5b1bd4a7bcf9941aac5 (diff)
downloadqemu-515b943a91db6c9faf9e35377c18db9ca32ecb40.tar.gz
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 'tests')
0 files changed, 0 insertions, 0 deletions