gobject-introspection r676 - in trunk: . giscanner



Author: walters
Date: Sun Oct 12 03:33:11 2008
New Revision: 676
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=676&view=rev

Log:
2008-10-11  Colin Walters  <walters verbum org>

	* giscanner/scannerlexer.l (parse_gtkdoc): Don't lose
	if we have mismatched parens.


Modified:
   trunk/ChangeLog
   trunk/giscanner/scannerlexer.l

Modified: trunk/giscanner/scannerlexer.l
==============================================================================
--- trunk/giscanner/scannerlexer.l	(original)
+++ trunk/giscanner/scannerlexer.l	Sun Oct 12 03:33:11 2008
@@ -262,8 +262,12 @@
 	      if (end)
 		{
 		  options = g_slist_prepend (options, g_strndup (start+1, end-(start+1)));
+		  start = strchr (end+1, '(');
+		}
+	      else
+		{
+		  break;
 		}
-	      start = strchr (end+1, '(');
 	    }
 	  g_free (ptr);
           value = parts[2];



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