From 9d5beeafa1db508a74ec2eda90b55ae33fc42668 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Wed, 8 Jan 2025 01:07:09 +0200 Subject: [PATCH] [subset-serialize] Fix doc generation gtk-doc is rather sensitive to white space, and it does not seem to be able to parse bare `unsigned` without `int`. --- src/hb-subset-serialize.h | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/src/hb-subset-serialize.h b/src/hb-subset-serialize.h index 7f3624dc8..38385aaac 100644 --- a/src/hb-subset-serialize.h +++ b/src/hb-subset-serialize.h @@ -32,41 +32,39 @@ HB_BEGIN_DECLS /** * hb_subset_serialize_link_t: - * @width: offsetSize in bytes + * @width: offsetSize in bytes * @position: position of the offset field in bytes from * beginning of subtable - * @objidx: index of subtable + * @objidx: index of subtable * * Represents a link between two objects in the object graph * to be serialized. */ -typedef struct hb_subset_serialize_link_t -{ - unsigned width; - unsigned position; - unsigned objidx; +typedef struct hb_subset_serialize_link_t { + unsigned int width; + unsigned int position; + unsigned int objidx; } hb_subset_serialize_link_t; /** * hb_subset_serialize_object_t: - * @head: start of object data - * @tail: end of object data - * @num_real_links: num of offset field in the object - * @real_links: pointer to array of offset info + * @head: start of object data + * @tail: end of object data + * @num_real_links: num of offset field in the object + * @real_links: pointer to array of offset info * @num_virtual_links: num of objects that must be packed * after current object in the final * serialized order - * @virtual_links: array of virtual link info + * @virtual_links: array of virtual link info * * Represents an object in the object graph to be serialized. */ -typedef struct hb_subset_serialize_object_t -{ +typedef struct hb_subset_serialize_object_t { char *head; char *tail; - unsigned num_real_links; + unsigned int num_real_links; hb_subset_serialize_link_t *real_links; - unsigned num_virtual_links; + unsigned int num_virtual_links; hb_subset_serialize_link_t *virtual_links; } hb_subset_serialize_object_t;