[pygccxml-commit] SF.net SVN: pygccxml: [847] pygccxml_dev
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2007-01-04 21:44:39
|
Revision: 847 http://svn.sourceforge.net/pygccxml/?rev=847&view=rev Author: roman_yakovenko Date: 2007-01-04 13:44:37 -0800 (Thu, 04 Jan 2007) Log Message: ----------- fixing bug reported by Martin Preisler Modified Paths: -------------- pygccxml_dev/pygccxml/declarations/type_traits.py pygccxml_dev/pygccxml/parser/patcher.py pygccxml_dev/unittests/autoconfig.py Modified: pygccxml_dev/pygccxml/declarations/type_traits.py =================================================================== --- pygccxml_dev/pygccxml/declarations/type_traits.py 2007-01-04 21:21:25 UTC (rev 846) +++ pygccxml_dev/pygccxml/declarations/type_traits.py 2007-01-04 21:44:37 UTC (rev 847) @@ -394,7 +394,7 @@ all_derived = None if isinstance( derived, class_declaration.class_t ): - all_derived = ( derived ) + all_derived = ( [derived] ) else: #tuple all_derived = derived Modified: pygccxml_dev/pygccxml/parser/patcher.py =================================================================== --- pygccxml_dev/pygccxml/parser/patcher.py 2007-01-04 21:21:25 UTC (rev 846) +++ pygccxml_dev/pygccxml/parser/patcher.py 2007-01-04 21:44:37 UTC (rev 847) @@ -57,11 +57,12 @@ type_ = declarations.remove_reference( declarations.remove_cv( arg.type ) ) if not declarations.is_enum( type_ ): return False - return type_.declaration.has_value_name( arg.default_value ) + enum_type = declarations.enum_declaration( type_ ) + return enum_type.has_value_name( arg.default_value ) def __fix_unqualified_enum( self, func, arg): type_ = declarations.remove_reference( declarations.remove_cv( arg.type ) ) - enum_type = type_.declaration + enum_type = declarations.enum_declaration( type_ ) return self.__join_names( enum_type.parent.decl_string, arg.default_value ) def __is_invalid_integral(self, func, arg): Modified: pygccxml_dev/unittests/autoconfig.py =================================================================== --- pygccxml_dev/unittests/autoconfig.py 2007-01-04 21:21:25 UTC (rev 846) +++ pygccxml_dev/unittests/autoconfig.py 2007-01-04 21:44:37 UTC (rev 847) @@ -18,7 +18,7 @@ if sys.platform == 'win32': gccxml_path = r'd:/dev/gccxml_cvs/gccxml-bin/bin/release/gccxml.exe' else: - gccxml_path = '/home/roman/gccxml-build/bin/gccxml' + gccxml_path = '/home/roman/gccxml/bin/gccxml' try: import pygccxml This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |