Re: [Qemu-devel] [PATCH 08/12] json-lexer: make it safe to call multiple times

2018-07-17 Thread Markus Armbruster
Marc-André Lureau writes: > We can easily avoid the burden of checking if the lexer was > initialized prior to calling destroy by the caller, let's do it. > > This allows simplification in state tracking in later patches of the > qmp-async RFC series. > > Signed-off-by: Marc-André Lureau > --- >

[Qemu-devel] [PATCH 08/12] json-lexer: make it safe to call multiple times

2018-07-06 Thread Marc-André Lureau
We can easily avoid the burden of checking if the lexer was initialized prior to calling destroy by the caller, let's do it. This allows simplification in state tracking in later patches of the qmp-async RFC series. Signed-off-by: Marc-André Lureau --- qobject/json-lexer.c | 5 - 1 file cha