[Libguestfs] [PATCH 1/5] v2v: DOM: Add doc_to_string function.

Pino Toscano ptoscano at redhat.com
Fri Feb 23 10:11:27 UTC 2018


On Thursday, 22 February 2018 14:57:21 CET Richard W.M. Jones wrote:
> +and buffer_add_spaces buf n =
> +  for i = 0 to n-1 do Buffer.add_char buf ' ' done

Maybe String.spaces could make this easier, e.g.

  and buffer_add_spaces buf n =
    Buffer.add_string buf (String.spaces n)

The rest LGTM.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20180223/ae22bbd4/attachment.sig>


More information about the Libguestfs mailing list