[pygccxml-commit] SF.net SVN: pygccxml: [986] pyplusplus_dev/pyplusplus/module_creator
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2007-04-15 10:17:04
|
Revision: 986 http://svn.sourceforge.net/pygccxml/?rev=986&view=rev Author: roman_yakovenko Date: 2007-04-15 03:17:05 -0700 (Sun, 15 Apr 2007) Log Message: ----------- better implementation of "include" method Modified Paths: -------------- pyplusplus_dev/pyplusplus/module_creator/creator.py pyplusplus_dev/pyplusplus/module_creator/header_files_manager.py Modified: pyplusplus_dev/pyplusplus/module_creator/creator.py =================================================================== --- pyplusplus_dev/pyplusplus/module_creator/creator.py 2007-04-15 10:15:47 UTC (rev 985) +++ pyplusplus_dev/pyplusplus/module_creator/creator.py 2007-04-15 10:17:05 UTC (rev 986) @@ -367,7 +367,7 @@ self.curr_code_creator.adopt_creator( maker ) self.__opaque_types_manager.register_opaque( maker, self.curr_decl ) - if self.curr_decl.transformations: + if self.curr_decl.transformations: required_headers = self.curr_decl.transformations[0].required_headers() self.__header_files_manager.include_ft( required_headers ) Modified: pyplusplus_dev/pyplusplus/module_creator/header_files_manager.py =================================================================== --- pyplusplus_dev/pyplusplus/module_creator/header_files_manager.py 2007-04-15 10:15:47 UTC (rev 985) +++ pyplusplus_dev/pyplusplus/module_creator/header_files_manager.py 2007-04-15 10:17:05 UTC (rev 986) @@ -19,11 +19,9 @@ def include( self, header, system=False, user_defined=False ): normalized_header = self.normalize( header ) - if normalized_header in self.__already_included: - return - else: + if normalized_header not in self.__already_included: self.__already_included.add( normalized_header ) - self.__extmodule.adopt_include( code_creators.include_t( header, user_defined=user_defined ) ) + self.__extmodule.adopt_include( code_creators.include_t( header, user_defined=user_defined ) ) if system: self.__extmodule.add_system_header( header ) @@ -38,7 +36,6 @@ def include_ft( self, required_headers ): #include function transformation headers required_headers = map( self.normalize, required_headers ) for header in required_headers: - # Check whether the header is already included system = bool( header in code_repository.headers ) self.include( header, system=system, user_defined=True ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |