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(a)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(a)redhat.com>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization:
qemu.org |
libvirt.org