[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 <noreply@anthropic.com>
This commit is contained in:
Skef Iterum committed 2026-06-05 15:09:12 -07:00
1 parent 4aa781e4a3
commit c1fac0561b
1 file changed
+2 -4
+2 -4
View File
@@ -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