|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 2/4] qjson: do not save/restore contexts |
Date: | Fri, 20 Nov 2015 21:17:54 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 20/11/2015 19:28, Eric Blake wrote: >> > + token = parser_context_peek_token(ctxt); >> > if (token == NULL) { >> > goto out; >> > } >> > >> > + if (token_get_type(token) != JSON_ESCAPE) { >> > + goto out; >> > + } > Could merge these two conditionals. Following the style of the rest of the file, for example: if (token == NULL) { goto out; } if (!token_is_operator(token, '{')) { goto out; } Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |