[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree

From: Avi Kivity
Subject: Re: [Qemu-devel] ANN: QEMU Monitor Protocol git tree
Date: Wed, 23 Sep 2009 13:57:57 +0300
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3

On 09/23/2009 12:57 PM, Daniel P. Berrange wrote:
Ignoring the dos-ism, since you can parse JSON with a regexp, why do we
need explicit message boundaries?
I think it would be nice to be able to assume that each JSON message
will not cross a line-end boundary. Whether we use CRLF, just CR or
just LF I don't mind. Its much easier to search for a message boundary
by just doing strchr('\n')  than having to actually parse the JSON or
use a regexp at that point.

A good parser will consume exactly enough characters to make up an object or let you know if it needs more. I don't think using a regexp is warranted.

error compiling committee.c: too many arguments to function

reply via email to

[Prev in Thread] Current Thread [Next in Thread]