[glib/docgen-fixes: 13/15] docs: Enable syntax highlighting on code examples
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/docgen-fixes: 13/15] docs: Enable syntax highlighting on code examples
- Date: Mon, 2 Aug 2021 15:06:46 +0000 (UTC)
commit 97a6111c834773e01f94889a4ea46983ba12551b
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Aug 2 15:56:42 2021 +0100
docs: Enable syntax highlighting on code examples
glib/gvariant.h | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/glib/gvariant.h b/glib/gvariant.h
index c0587a887..11c74d596 100644
--- a/glib/gvariant.h
+++ b/glib/gvariant.h
@@ -345,7 +345,9 @@ GQuark g_variant_parse_error_quark (void);
* A stack-allocated #GVariantBuilder must be initialized if it is
* used together with g_auto() to avoid warnings or crashes if
* function returns before g_variant_builder_init() is called on the
- * builder. This macro can be used as initializer instead of an
+ * builder.
+ *
+ * This macro can be used as initializer instead of an
* explicit zeroing a variable when declaring it and a following
* g_variant_builder_init(), but it cannot be assigned to a variable.
*
@@ -354,7 +356,7 @@ GQuark g_variant_parse_error_quark (void);
* the G_VARIANT_BUILDER_INIT() call, but rather in functions that
* make sure that #GVariantBuilder is valid.
*
- * |[
+ * |[<!-- language="C" -->
* g_auto(GVariantBuilder) builder = G_VARIANT_BUILDER_INIT (G_VARIANT_TYPE_BYTESTRING);
* ]|
*
@@ -455,6 +457,7 @@ struct _GVariantDict {
* A stack-allocated #GVariantDict must be initialized if it is used
* together with g_auto() to avoid warnings or crashes if function
* returns before g_variant_dict_init() is called on the builder.
+ *
* This macro can be used as initializer instead of an explicit
* zeroing a variable when declaring it and a following
* g_variant_dict_init(), but it cannot be assigned to a variable.
@@ -468,7 +471,7 @@ struct _GVariantDict {
* safely with a different @asv right after the variable was
* initialized with G_VARIANT_DICT_INIT().
*
- * |[
+ * |[<!-- language="C" -->
* g_autoptr(GVariant) variant = get_asv_variant ();
* g_auto(GVariantDict) dict = G_VARIANT_DICT_INIT (variant);
* ]|
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]