Revision: 1333
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1333&view=rev
Author: roman_yakovenko
Date: 2008-06-11 12:44:02 -0700 (Wed, 11 Jun 2008)
Log Message:
-----------
adding convenience function: to_list
Modified Paths:
--------------
pygccxml_dev/pygccxml/declarations/mdecl_wrapper.py
Modified: pygccxml_dev/pygccxml/declarations/mdecl_wrapper.py
===================================================================
--- pygccxml_dev/pygccxml/declarations/mdecl_wrapper.py 2008-06-11 19:37:55 UTC (rev 1332)
+++ pygccxml_dev/pygccxml/declarations/mdecl_wrapper.py 2008-06-11 19:44:02 UTC (rev 1333)
@@ -88,3 +88,9 @@
def __contains__( self, item ):
return item in self.declarations
+
+ def to_list(self):
+ l = []
+ for d in self.declarations:
+ l.append( d )
+ return l
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|