From: Ian Campbell Subject: Re: [PATCH V7 6/7] libxl: Introduce JSON parsing stuff. Date: Thu, 21 Jul 2011 15:40:56 +0100 Message-ID: <1311259256.32010.161.camel@zakaz.uk.xensource.com> References: <1311197072-16003-1-git-send-email-anthony.perard@citrix.com> <1311197072-16003-7-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1311197072-16003-7-git-send-email-anthony.perard@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Anthony PERARD Cc: Xen Devel , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Wed, 2011-07-20 at 22:24 +0100, Anthony PERARD wrote: > + /* parse the input */ > + if (yajl_ctx.hand == NULL) { > + /* allow comments */ > + yajl_parser_config cfg = { 1, 1 }; Looks like YALJ v2 has enums for these config values but v1 doesn't. However yajl_parse_config cfg = { .allowComments = 1, .checkUTF8 = 1, }; is a bit more self documenting. (supporting yajl 1 and 2 is going to be a pain. but lets cross that bridge when we come to it...) Ian.