gobject-introspection r841 - in trunk: . giscanner



Author: walters
Date: Thu Oct 30 16:55:56 2008
New Revision: 841
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=841&view=rev

Log:
Don't reparse includes we've already processed

Modified:
   trunk/ChangeLog
   trunk/giscanner/transformer.py

Modified: trunk/giscanner/transformer.py
==============================================================================
--- trunk/giscanner/transformer.py	(original)
+++ trunk/giscanner/transformer.py	Thu Oct 30 16:55:56 2008
@@ -100,6 +100,8 @@
         self._includepaths = list(paths)
 
     def register_include(self, include):
+        if include in self._includes:
+            return
         filename = self._find_include(include)
         self._parse_include(filename)
         self._includes.add(include)



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