From: Ian Campbell Subject: Re: [PATCH v7 4/9] libxl/gentypes.py: don't generate default values Date: Wed, 18 Jun 2014 15:13:13 +0100 Message-ID: <1403100793.6568.38.camel@kazak.uk.xensource.com> References: <1402997549-23136-1-git-send-email-wei.liu2@citrix.com> <1402997549-23136-5-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: <1402997549-23136-5-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.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Tue, 2014-06-17 at 10:32 +0100, Wei Liu wrote: > If a field: > 0. is not of aggregate type > and > 1. is of array type and the array is not empty > or 2. is of a type which has init_val and has been set to init_val, > or 3. is of builtin type and has been set to internal default value, > or 4. has been set to 0 This isn't quite true, since #4 depends on their being no init_val. Prepend "is of a type which has no init_val and "? > Signed-off-by: Wei Liu Other than that: Acked-by: Ian Campbell