summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2019-03-31 13:41:48 +0200
committerStefan Sauer <ensonic@users.sf.net>2019-03-31 13:41:48 +0200
commitda8a5b8667d4effc7d17af8a15ba3d9c4bee7f5e (patch)
tree954a7f755ddf87a7c913bbafbbf14041a5750193 /tests
parente5c192aab0dea9a39e394bdefc16dd2f9b42442f (diff)
downloadgtk-doc-da8a5b8667d4effc7d17af8a15ba3d9c4bee7f5e.tar.gz
mkdb: add repro for markdown list indentation issue
See #76
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/docs/tester-sections.txt1
-rw-r--r--tests/bugs/src/tester.c2
-rw-r--r--tests/bugs/src/tester.h33
3 files changed, 35 insertions, 1 deletions
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