From: Ian Jackson Subject: Re: [PATCH v2-resend 18/30] libxl: ocaml: use the "string option" type for IDL strings Date: Tue, 27 Aug 2013 18:44:17 +0100 Message-ID: <21020.58737.153432.432094@mariner.uk.xensource.com> References: <1377168678-25492-1-git-send-email-rob.hoes@citrix.com> <1377168678-25492-19-git-send-email-rob.hoes@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1377168678-25492-19-git-send-email-rob.hoes@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: Rob Hoes Cc: ian.campbell@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Rob Hoes writes ("[Xen-devel] [PATCH v2-resend 18/30] libxl: ocaml: use the "string option" type for IDL strings"): > The libxl IDL is based on C type "char *", and therefore "strings" can > by NULL, or be an actual string. In ocaml, it is common to encode such > things as option types. Can you point me to the existing code this replaces ? I was looking for "Val_string" and "String_val" but couldn't find them. I think if that code is missing it deserves a note in the commit message at least (and then surely this new code is currently unused?) Thanks, Ian.