gtk-doc r605 - in trunk: . tests/bugs/docs tests/bugs/src



Author: stefkost
Date: Fri Oct  3 13:38:39 2008
New Revision: 605
URL: http://svn.gnome.org/viewvc/gtk-doc?rev=605&view=rev

Log:
	patch by: Matthew Barnes <mbarnes redhat com>
	* gtkdoc-scan.in:
	* tests/bugs/docs/tester-sections.txt:
	* tests/bugs/src/tester.h:
	  Be more careful with "struct _<struct_name>". Fixes #554833.



Modified:
   trunk/ChangeLog
   trunk/gtkdoc-scan.in
   trunk/tests/bugs/docs/tester-sections.txt
   trunk/tests/bugs/src/tester.h

Modified: trunk/gtkdoc-scan.in
==============================================================================
--- trunk/gtkdoc-scan.in	(original)
+++ trunk/gtkdoc-scan.in	Fri Oct  3 13:38:39 2008
@@ -507,6 +507,10 @@
 
 	    # STRUCTS
 
+	    } elsif (m/^\s*struct\s+_(\w+)\s*\*/) {
+		# Skip 'struct _<struct_name> *', since it could be a
+		# return type on its own line.
+
 	    } elsif (m/^\s*struct\s+_(\w+)/) {
 		# We assume that 'struct _<struct_name>' is really the
 		# declaration of struct <struct_name>.

Modified: trunk/tests/bugs/docs/tester-sections.txt
==============================================================================
--- trunk/tests/bugs/docs/tester-sections.txt	(original)
+++ trunk/tests/bugs/docs/tester-sections.txt	Fri Oct  3 13:38:39 2008
@@ -20,6 +20,7 @@
 bug_501038
 bug_544172
 bug_552602
+bug_554833
 <SUBSECTION Standard>
 <SUBSECTION Private>
 </SECTION>

Modified: trunk/tests/bugs/src/tester.h
==============================================================================
--- trunk/tests/bugs/src/tester.h	(original)
+++ trunk/tests/bugs/src/tester.h	Fri Oct  3 13:38:39 2008
@@ -130,5 +130,17 @@
  **/
 typedef char const * (*bug_544172) (char const *self);
 
+/** 
+ * bug_554833:
+ *
+ * http://bugzilla.gnome.org/show_bug.cgi?id=554833
+ **/
+struct _bug_554833 {
+  int i;
+};
+
+struct _bug_554833 *
+                bug_554833_new (void);
+
 #endif // GTKDOC_TESTER_H
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]