From: Ian Jackson Subject: Re: [PATCH v6 20/23] libxlu: record line and column number when parsing values Date: Fri, 6 Mar 2015 11:36:03 +0000 Message-ID: <21753.37155.743889.586465@mariner.uk.xensource.com> References: <1424966166-2388-1-git-send-email-wei.liu2@citrix.com> <1424966166-2388-21-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1424966166-2388-21-git-send-email-wei.liu2@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Wei Liu writes ("[PATCH v6 20/23] libxlu: record line and column number when parsing values"): > Originally only setting has line number recorded. Since we're moving to > more sophisticated API, record line number and column number for > individual value. They are useful for error reporting. This is a good idea. Why not use the flex location type in your formal parameters everywhere ? That would mean plumbing one rather than two values. Ian.