Re: [Qemu-devel] [PATCH RFC v2 05/47] qapi: Reject -p arguments that break qapi-event.py

2015-07-24 Thread Markus Armbruster
Eric Blake writes: > On 07/01/2015 02:21 PM, Markus Armbruster wrote: >> qapi-event.py breaks when you ask for a funny prefix like '@'. >> Protect it. > > Only possible from the command line (not triggered by our makefiles); > but doesn't hurt. > >> >> Signed-off-by: Markus Armbruster >> --- >>

Re: [Qemu-devel] [PATCH RFC v2 05/47] qapi: Reject -p arguments that break qapi-event.py

2015-07-20 Thread Eric Blake
On 07/20/2015 11:57 AM, Eric Blake wrote: > 'qemu' is unusual for accepting -single-dash-long-opts; I don't think > python getopts does the same by default. Or to rephrase, qemu acts as though it uses GNU getopt_long_only() (some programs like gcc do likewise), but MOST programs that take long opt

Re: [Qemu-devel] [PATCH RFC v2 05/47] qapi: Reject -p arguments that break qapi-event.py

2015-07-20 Thread Eric Blake
On 07/01/2015 02:21 PM, Markus Armbruster wrote: > qapi-event.py breaks when you ask for a funny prefix like '@'. > Protect it. Only possible from the command line (not triggered by our makefiles); but doesn't hurt. > > Signed-off-by: Markus Armbruster > --- > scripts/qapi.py | 6 ++ > 1 f

[Qemu-devel] [PATCH RFC v2 05/47] qapi: Reject -p arguments that break qapi-event.py

2015-07-01 Thread Markus Armbruster
qapi-event.py breaks when you ask for a funny prefix like '@'. Protect it. Signed-off-by: Markus Armbruster --- scripts/qapi.py | 6 ++ 1 file changed, 6 insertions(+) diff --git a/scripts/qapi.py b/scripts/qapi.py index 2bbc8ff..ea94ce5 100644 --- a/scripts/qapi.py +++ b/scripts/qapi.py @@