From c1fac0561ba446698ba7cebcc230aaf9cc7003cc Mon Sep 17 00:00:00 2001 From: Skef Iterum Date: Fri, 22 May 2026 11:03:48 -0700 Subject: [PATCH] [depend] Fix docs build: remove include guard around public enum gtk-doc couldn't find the HB_SUBSET_DEPEND_EDGE_FLAG_* enum constants because they were wrapped in #ifndef HB_SUBSET_DEPEND_EDGE_FLAGS_T_DEFINED. The guard exists so that the duplicate definition in hb-depend-data.hh (for internal code) doesn't conflict. Fix: remove the #ifndef/#endif around the typedef in the public header and place the #define after it. gtk-doc now sees the unguarded typedef; hb-depend-data.hh's guarded copy is still suppressed when both headers are included in the same TU. Also add /*< flags >*/ gtk-doc annotation to the enum. Assisted-by: Claude Opus 4.6 --- src/hb-depend.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/hb-depend.h b/src/hb-depend.h index e984fba8a..92f80db7a 100644 --- a/src/hb-depend.h +++ b/src/hb-depend.h @@ -61,14 +61,12 @@ HB_BEGIN_DECLS * * XSince: REPLACEME */ -#ifndef HB_SUBSET_DEPEND_EDGE_FLAGS_T_DEFINED -#define HB_SUBSET_DEPEND_EDGE_FLAGS_T_DEFINED -typedef enum { +typedef enum { /*< flags >*/ HB_SUBSET_DEPEND_EDGE_FLAG_NONE = 0x00u, HB_SUBSET_DEPEND_EDGE_FLAG_FROM_CONTEXT_POSITION = 0x01u, HB_SUBSET_DEPEND_EDGE_FLAG_FROM_NESTED_CONTEXT = 0x02u, } hb_subset_depend_edge_flags_t; -#endif +#define HB_SUBSET_DEPEND_EDGE_FLAGS_T_DEFINED /* HB_MARK_AS_FLAG_T is applied in hb-depend-data.hh (internal header only) */ #ifndef HB_NO_SUBSET_DEPEND