parsing: improve parsing of arguments
[gtk-doc.git] / tests / bugs / src / tester.c
blob01f3d52ddcf02b6181b6f05eb1cb9d7e1df897e5
1 /**
2 * SECTION:tester
3 * @short_description: module for gtk-doc unit test
5 * This file contains non-sense code for the sole purpose of testing the docs.
7 * As described in http://bugzilla.gnome.org/show_bug.cgi?id=457077 it
8 * returns nothing.
10 * Some special characters need escaping. The tests should pass 100\%.
11 * Try a <ulink url="http://www.gtk.org/gtk-doc/#Top">link containing a # char</ulink>.
13 * <refsect2 id="dummy-id">
14 * <title>more details</title>
15 * <para>
16 * Second paragraph inside subsection.
17 * </para>
18 * </refsect2>
21 #include <glib.h>
23 #include "tester.h"
25 /**
26 * bug_141869_a:
27 * @pid: arg
29 * http://bugzilla.gnome.org/show_bug.cgi?id=141869
31 void bug_141869_a (unsigned pid) {
32 /* just silence a compiler warning */
33 bug_481811((double)pid);
36 /**
37 * bug_141869_b:
38 * @pid: arg
40 * http://bugzilla.gnome.org/show_bug.cgi?id=141869
42 void bug_141869_b (signed pid) {
46 /**
47 * bug_379466:
48 * @pid: arg
50 * http://bugzilla.gnome.org/show_bug.cgi?id=379466
52 void bug_379466 (int
53 pid) {
57 /**
58 * bug_380824:
59 * @arg: arg
61 * Returns a value.
62 * http://bugzilla.gnome.org/show_bug.cgi?id=380824
64 * Since: 0.1
66 * Returns: result
68 int bug_380824 (int arg) {
69 return 0;
73 /**
74 * bug_411739:
76 * http://bugzilla.gnome.org/show_bug.cgi?id=411739
78 * Returns: result
80 struct bug *
81 bug_411739 (void) {
82 return NULL;
86 /**
87 * bug_419997:
88 * @const_values: arg
90 * http://bugzilla.gnome.org/show_bug.cgi?id=419997
92 void bug_419997 (int const_values) {
96 /**
97 * bug_445693:
98 * @pid: arg
100 * http://bugzilla.gnome.org/show_bug.cgi?id=445693
102 void bug_445693 (unsigned long pid) {
107 * bug_471014:
109 * http://bugzilla.gnome.org/show_bug.cgi?id=471014
111 * Returns: result
113 G_CONST_RETURN gchar* G_CONST_RETURN * bug_471014 (void) {
114 return NULL;
119 * Bug446648:
120 * @BUG_446648_FOO: foo
122 * http://bugzilla.gnome.org/show_bug.cgi?id=446648
127 * bug_552602:
129 * http://bugzilla.gnome.org/show_bug.cgi?id=552602
131 * Returns: result
133 const char* const * bug_552602 (void) {
134 return NULL;
138 * bug_574654a:
140 * http://bugzilla.gnome.org/show_bug.cgi?id=574654
142 * Returns: result
145 * bug_574654b:
146 * @offset: skip this many items
148 * http://bugzilla.gnome.org/show_bug.cgi?id=574654
150 int bug_574654a(void) {
151 return 0;
154 void bug_574654b(double offset) { }
158 * bug_580300a_get_type:
160 * http://bugzilla.gnome.org/show_bug.cgi?id=580300
162 void bug_580300a_get_type(void) { }
165 * bug_580300b_get_type:
166 * @a: value
168 * http://bugzilla.gnome.org/show_bug.cgi?id=580300
170 void bug_580300b_get_type(gint a) { }
173 * bug_580300c_get_type:
175 * http://bugzilla.gnome.org/show_bug.cgi?id=580300
177 void bug_580300c_get_type() { }
180 * bug_580300d_get_type:
182 * http://bugzilla.gnome.org/show_bug.cgi?id=580300
184 * Returns: result
186 int bug_580300d_get_type() { return 0; }
189 * bug_597937:
190 * @function_arg: value
192 * http://bugzilla.gnome.org/show_bug.cgi?id=597937
194 void bug_597937(void (*function_arg)(int arg1, char arg2, void *)) { }
197 * bug_602518a:
199 * http://bugzilla.gnome.org/show_bug.cgi?id=602518
201 * Returns: result
203 long int bug_602518a(void) {
204 return (long int)0;
208 * bug_602518b:
210 * http://bugzilla.gnome.org/show_bug.cgi?id=602518
212 * Returns: result
214 unsigned long int bug_602518b(void) {
215 return (unsigned long int)0;
219 * bug_602518c:
221 * http://bugzilla.gnome.org/show_bug.cgi?id=602518
223 * Returns: result
225 unsigned int bug_602518c(void) {
226 return (unsigned int)0;
230 * bug_607445:
231 * @a: parameter
232 * @n: parameter
234 * http://bugzilla.gnome.org/show_bug.cgi?id=607445
236 long double bug_607445(long double **a, int n) {
237 return 2.0*n;
241 * bug_610257:
242 * @der: parameter
243 * @len: parameter
245 * http://bugzilla.gnome.org/show_bug.cgi?id=610257
247 signed long
248 bug_610257(const unsigned char *der, int *len)
250 return 1L;
255 * bug_623968a:
257 * <para>test</para>
258 * <refsect3>
259 * <title>subsect</title>
260 * <para>test</para>
261 * </refsect3>
263 void
264 bug_623968a(void)
269 * bug_623968b:
271 * test
273 * <refsect3>
274 * <title>subsect</title>
275 * <para>test</para>
276 * </refsect3>
278 void
279 bug_623968b(void)
284 * bug_623968c:
286 * <para>test</para>
288 void
289 bug_623968c(void)
295 * bug_624200a:
297 * http://bugzilla.gnome.org/show_bug.cgi?id=624200
299 * Returns: result
301 const char * const *
302 bug_624200a(void)
304 return NULL;
308 * bug_624200b:
310 * http://bugzilla.gnome.org/show_bug.cgi?id=624200
312 * Returns: result
314 const char ** const
315 bug_624200b(void)
317 return NULL;
321 * bug_638330:
322 * @arg1: arg1
323 * @data: data
324 * @length: length
326 * http://bugzilla.gnome.org/show_bug.cgi?id=638330
328 void (*bug_638330) (void *arg1,
329 const unsigned char *data,
330 unsigned int length) = NULL;
333 /* internal function */
334 gchar *
335 _bug_000000a (const gchar *name)
337 return NULL;