From 908bd08dc5439497533e6eb7072717c1237cf46e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 14 Jan 2023 12:55:25 -0500 Subject: [PATCH] Try to make gtk-doc happy --- glib/gstring.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/glib/gstring.h b/glib/gstring.h index 00dea325b..7b8455360 100644 --- a/glib/gstring.h +++ b/glib/gstring.h @@ -163,8 +163,10 @@ GString* g_string_append_uri_escaped (GString *string, const gchar *reserved_chars_allowed, gboolean allow_utf8); -/* -- optimize g_strig_append_c --- */ +#ifndef __GTK_DOC_IGNORE__ + #ifdef G_CAN_INLINE +G_ALWAYS_INLINE static inline GString* g_string_append_c_inline (GString *gstring, gchar c) @@ -180,6 +182,7 @@ g_string_append_c_inline (GString *gstring, } #define g_string_append_c(gstr,c) g_string_append_c_inline (gstr, c) +G_ALWAYS_INLINE static inline GString * g_string_append_len_inline (GString *gstring, const char *val, @@ -204,6 +207,7 @@ g_string_append_len_inline (GString *gstring, } #define g_string_append_len(gstr,val,len) g_string_append_len_inline (gstr, val, len) +G_ALWAYS_INLINE static inline GString * g_string_truncate_inline (GString *gstring, gsize len) @@ -223,6 +227,7 @@ g_string_truncate_inline (GString *gstring, #endif /* G_CAN_INLINE */ +#endif /* __GTK_DOC_IGNORE__ */ GLIB_DEPRECATED GString *g_string_down (GString *string);