From: Ian Campbell Subject: Re: [PATCH v5 2/8] tools/libxc: pull min/max_t into xc_private.h Date: Thu, 10 Jul 2014 12:08:32 +0100 Message-ID: <1404990512.32404.33.camel@hastur.hellion.org.uk> References: <1404907608.16789.18.camel@kazak.uk.xensource.com> <1404907666-8594-2-git-send-email-ian.campbell@citrix.com> <21438.29292.312232.853347@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <21438.29292.312232.853347@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: stefano.stabellini@eu.citrix.com, tim@xen.org, julien.grall@linaro.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-07-10 at 12:01 +0100, Ian Jackson wrote: > Ian Campbell writes ("[PATCH v5 2/8] tools/libxc: pull min/max_t into xc_private.h"): > > There are generally useful. > > Sorry for not spotting this but: names matching "*_t" are by the C > spec "reserved for the implementation". This is not a problem in the > hypervisor because that is compiled without the system headrs. Oh damn, yes of course. > In practice what this means is that it is possible that porting the > tools to a new platform might involve renaming these macros. So we > don't need to fix it right now unless we really feel like it. > > But we mustn't let the scope of these increase to include guest-side > code. I don't think there is any danger of that, there's no reason at all for this to be in e.g. xen/include/public. > (Also "min_t" is a very funny name for a function macro like this one. > To me it implies a type.) It's the _typed version of min I suppose, I think we've inherited this all the way from Linux without really considering the name... Ian.