[Libguestfs] [libnbd PATCH 2/6] generator/utils: add "pr_wrap_c_comment"

Eric Blake eblake at redhat.com
Wed May 10 15:08:36 UTC 2023


On Wed, May 10, 2023 at 01:48:10PM +0200, Laszlo Ersek wrote:
> Add the "pr_wrap_c_comment" function, for wrapping C comments.
> 
> Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2172516
> Signed-off-by: Laszlo Ersek <lersek at redhat.com>
> ---
>  generator/utils.mli |  1 +
>  generator/utils.ml  | 87 ++++++++++++++++++++
>  2 files changed, 88 insertions(+)
> 

> +++ b/generator/utils.ml

> +
> +  (* Format the comment into a buffer, and append a space character, for forcing
> +   * a nonspace -> space transiton at the end of the comment, provided the

transition

Otherwise, well-commented, and looks like it meets the intent.

Reviewed-by: Eric Blake <eblake at redhat.com>

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


More information about the Libguestfs mailing list