Re: [Qemu-devel] [PATCH v4 1/3] qapi: Use an explicit input file

2014-03-04 Thread Lluís Vilanova
Markus Armbruster writes: > Lluís Vilanova writes: >> Markus Armbruster writes: >> [...] >> self.fp = schema.fp >> self.msg = msg >> self.line = self.col = 1 >> @@ -50,12 +52,17 @@ class QAPISchemaError(Exception): >> self.col += 1 >> >> def __str__(self): >> - re

Re: [Qemu-devel] [PATCH v4 1/3] qapi: Use an explicit input file

2014-03-04 Thread Markus Armbruster
Lluís Vilanova writes: > Markus Armbruster writes: > [...] > self.fp = schema.fp > self.msg = msg > self.line = self.col = 1 > @@ -50,12 +52,17 @@ class QAPISchemaError(Exception): > self.col += 1 > > def __str__(self): > - return "%s:%s:%s: %s" % (self.fp.name, s

Re: [Qemu-devel] [PATCH v4 1/3] qapi: Use an explicit input file

2014-03-03 Thread Lluís Vilanova
Markus Armbruster writes: [...] self.fp = schema.fp self.msg = msg self.line = self.col = 1 @@ -50,12 +52,17 @@ class QAPISchemaError(Exception): self.col += 1 def __str__(self): - return "%s:%s:%s: %s" % (self.fp.name, self.line, self.col, self.msg) >>

Re: [Qemu-devel] [PATCH v4 1/3] qapi: Use an explicit input file

2014-03-03 Thread Markus Armbruster
Lluís Vilanova writes: > Markus Armbruster writes: > >> Lluís Vilanova writes: > [...] >>> diff --git a/scripts/qapi.py b/scripts/qapi.py >>> index 9b3de4c..59c2b9b 100644 >>> --- a/scripts/qapi.py >>> +++ b/scripts/qapi.py >>> @@ -12,6 +12,7 @@ >>> # See the COPYING.LIB file in the top-level di

Re: [Qemu-devel] [PATCH v4 1/3] qapi: Use an explicit input file

2014-03-03 Thread Lluís Vilanova
Markus Armbruster writes: > Lluís Vilanova writes: [...] >> diff --git a/scripts/qapi.py b/scripts/qapi.py >> index 9b3de4c..59c2b9b 100644 >> --- a/scripts/qapi.py >> +++ b/scripts/qapi.py >> @@ -12,6 +12,7 @@ >> # See the COPYING.LIB file in the top-level directory. >> >> from ordereddict impo

Re: [Qemu-devel] [PATCH v4 1/3] qapi: Use an explicit input file

2014-03-01 Thread Markus Armbruster
Lluís Vilanova writes: > Use an explicit input file on the command-line instead of reading from > standard input > > Signed-off-by: Lluís Vilanova > --- > Makefile | 24 ++-- > docs/qapi-code-gen.txt|4 ++--

[Qemu-devel] [PATCH v4 1/3] qapi: Use an explicit input file

2014-02-28 Thread Lluís Vilanova
Use an explicit input file on the command-line instead of reading from standard input Signed-off-by: Lluís Vilanova --- Makefile | 24 ++-- docs/qapi-code-gen.txt|4 ++-- scripts/qapi-commands.py