From: Wei Liu Subject: Re: [PATCH RFC] libxl: support for using 'MmGg' as memory size suffix Date: Mon, 21 Oct 2013 15:14:11 +0100 Message-ID: <20131021141411.GC1410@zion.uk.xensource.com> References: <1379778703-26986-1-git-send-email-wei.liu2@citrix.com> <21079.58012.721045.711808@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <21079.58012.721045.711808@mariner.uk.xensource.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: Ian Jackson Cc: Wei Liu , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, Oct 11, 2013 at 12:35:56PM +0100, Ian Jackson wrote: > Wei Liu writes ("[PATCH RFC] libxl: support for using 'MmGg' as memory size suffix"): > > Modify lexer to special-case memory size string. Introduce > > xlu_cfg_get_memsize to parse memroy size strings. > > Urgh, this is really quite an ugly special case. > > Perhaps a better approach might be to just permit unquoted strings > when the string is vaguely like a token, and return the token type "vaguely" is too vague I'm afraid... Wei.