Re: [Qemu-devel] [PATCH V8 03/10] qapi script: remember line number in schema parsing

2014-02-27 Thread Eric Blake
On 02/27/2014 04:09 AM, Wenchao Xia wrote: > From: Wenchao Xia > > 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 repor

[Qemu-devel] [PATCH V8 03/10] qapi script: remember line number in schema parsing

2014-02-27 Thread Wenchao Xia
From: Wenchao Xia 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-o