[gtk-doc] mkdb: add repro for markdown list indentation issue
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkdb: add repro for markdown list indentation issue
- Date: Sun, 31 Mar 2019 11:42:43 +0000 (UTC)
commit da8a5b8667d4effc7d17af8a15ba3d9c4bee7f5e
Author: Stefan Sauer <ensonic users sf net>
Date: Sun Mar 31 13:41:48 2019 +0200
mkdb: add repro for markdown list indentation issue
See #76
tests/bugs/docs/tester-sections.txt | 1 +
tests/bugs/src/tester.c | 2 +-
tests/bugs/src/tester.h | 33 +++++++++++++++++++++++++++++++++
3 files changed, 35 insertions(+), 1 deletion(-)
---
diff --git a/tests/bugs/docs/tester-sections.txt b/tests/bugs/docs/tester-sections.txt
index 05dda6e..ab22e35 100644
--- a/tests/bugs/docs/tester-sections.txt
+++ b/tests/bugs/docs/tester-sections.txt
@@ -11,6 +11,7 @@ Bug446648
Bug512154
Bug644291
Bug000000Scope
+Bug76
<SUBSECTION Functions>
bug_000000_va1
BUG_000000_VA2
diff --git a/tests/bugs/src/tester.c b/tests/bugs/src/tester.c
index dae1253..902de39 100644
--- a/tests/bugs/src/tester.c
+++ b/tests/bugs/src/tester.c
@@ -433,4 +433,4 @@ bug_749142 (void)
void
bug_783420 (int in, int *out)
{
-}
\ No newline at end of file
+}
diff --git a/tests/bugs/src/tester.h b/tests/bugs/src/tester.h
index c6b154e..0940e3e 100644
--- a/tests/bugs/src/tester.h
+++ b/tests/bugs/src/tester.h
@@ -398,5 +398,38 @@ void bug_783420 (int in, int *out);
*/
#define BUG_791928 1
+/**
+ * Bug76:
+ * @arg: The type of the option, as a #GOptionArg
+ * @arg_data: If the @arg type is %G_OPTION_ARG_CALLBACK, then @arg_data
+ * must point to a #GOptionArgFunc callback function, which will be
+ * called to handle the extra argument. Otherwise, @arg_data is a
+ * pointer to a location to store the value, the required type of
+ * the location depends on the @arg type:
+ * - %G_OPTION_ARG_NONE: %gboolean
+ * - %G_OPTION_ARG_STRING: %gchar*
+ * - %G_OPTION_ARG_INT: %gint
+ * - %G_OPTION_ARG_FILENAME: %gchar*
+ * - %G_OPTION_ARG_STRING_ARRAY: %gchar**
+ * - %G_OPTION_ARG_FILENAME_ARRAY: %gchar**
+ * - %G_OPTION_ARG_DOUBLE: %gdouble
+ * If @arg type is %G_OPTION_ARG_STRING or %G_OPTION_ARG_FILENAME,
+ * the location will contain a newly allocated string if the option
+ * was given. That string needs to be freed by the callee using g_free().
+ * Likewise if @arg type is %G_OPTION_ARG_STRING_ARRAY or
+ * %G_OPTION_ARG_FILENAME_ARRAY, the data should be freed using g_strfreev().
+ * @description: the description for the option in `--help`
+ * output. The @description is translated using the @translate_func
+ * of the group, see g_option_group_set_translation_domain().
+ *
+ * https://gitlab.gnome.org/GNOME/gtk-doc/issues/76
+ */
+struct _Bug76
+{
+ int arg;
+ void * arg_data;
+ char * description;
+};
+typedef struct _Bug76 Bug76;
#endif // GTKDOC_TESTER_H
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]