gtk-doc r544 - trunk



Author: stefkost
Date: Mon Jan 21 13:40:09 2008
New Revision: 544
URL: http://svn.gnome.org/viewvc/gtk-doc?rev=544&view=rev

Log:
	* gtkdoc-common.pl.in:
	  Don't warn when parsing enum struct members.



Modified:
   trunk/ChangeLog
   trunk/gtkdoc-common.pl.in

Modified: trunk/gtkdoc-common.pl.in
==============================================================================
--- trunk/gtkdoc-common.pl.in	(original)
+++ trunk/gtkdoc-common.pl.in	Mon Jan 21 13:40:09 2008
@@ -151,7 +151,7 @@
 
         # Try to match structure members which are functions
 	if ($line =~ m/^
-		 (const\s+|G_CONST_RETURN\s+|unsigned\s+|signed\s+|long\s+|short\s+)*(struct\s+)?  # mod1
+		 (const\s+|G_CONST_RETURN\s+|unsigned\s+|signed\s+|long\s+|short\s+)*(struct\s+|enum\s+)?  # mod1
 		 (\w+)\s*                             # type
 	         (\**(?:\s*restrict)?)\s*             # ptr1
 		 (const\s+)?                          # mod2
@@ -184,7 +184,7 @@
 
 	# Try to match normal struct fields of comma-separated variables/
 	} elsif ($line =~ m/^
-	    ((?:const\s+|unsigned\s+|volatile\s+|signed\s+|short\s+|long\s+)*)(struct\s+)? # mod1
+	    ((?:const\s+|unsigned\s+|volatile\s+|signed\s+|short\s+|long\s+)*)(struct\+|enum\s+)? # mod1
 	    (\w+)\s*                            # type
 	    (\** \s* const\s+)?                 # mod2
 	    (.*)				# variables



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