Update of /cvsroot/pygccxml/source/pyplusplus/decl_wrappers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19111/pyplusplus/decl_wrappers
Modified Files:
decl_wrapper.py scopedef_wrapper.py
Log Message:
porting boost.date_time library to use new api.
Porting process discover few bugs, I fixed them.
Index: decl_wrapper.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/decl_wrappers/decl_wrapper.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** decl_wrapper.py 28 Feb 2006 07:31:33 -0000 1.1
--- decl_wrapper.py 19 Mar 2006 13:35:39 -0000 1.2
***************
*** 30,35 ****
elif declarations.templates.is_instantiation( self.name ):
valid_name = self._generate_valid_name()
! report_msg_once('replacing name "%s" with "%s"'
! % (self.name, valid_name) )
return valid_name
else:
--- 30,35 ----
elif declarations.templates.is_instantiation( self.name ):
valid_name = self._generate_valid_name()
! #I don't think user should see this, but I could be wrong
! #report_msg_once('replacing name "%s" with "%s"' % (self.name, valid_name) )
return valid_name
else:
Index: scopedef_wrapper.py
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/decl_wrappers/scopedef_wrapper.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** scopedef_wrapper.py 15 Mar 2006 09:27:06 -0000 1.2
--- scopedef_wrapper.py 19 Mar 2006 13:35:39 -0000 1.3
***************
*** 23,28 ****
def include( self ):
self.ignore = False
! for decl in declarations.make_flatten( self.declarations ):
! decl.ignore = False
def finalize( self ):
--- 23,27 ----
def include( self ):
self.ignore = False
! map( lambda decl: decl.include(), self.declarations )
def finalize( self ):
***************
*** 33,38 ****
def __create_matcher( self, match_class, *args, **keywds ):
! if len( args ) == 1 and not keywds and callable( args[0] ):
! matcher = match_class()
return lambda decl: matcher( decl ) and args[0](decl)
else:
--- 32,37 ----
def __create_matcher( self, match_class, *args, **keywds ):
! if len( args ) == 1 and callable( args[0] ):
! matcher = match_class( [], **keywds)
return lambda decl: matcher( decl ) and args[0](decl)
else:
***************
*** 94,98 ****
def constructor( self, *args, **keywds ):
! keywds['decl_type'] = declarations.member_function_t
return self._find_single( declarations.calldef_matcher_t, *args, **keywds )
--- 93,97 ----
def constructor( self, *args, **keywds ):
! keywds['decl_type'] = declarations.constructor_t
return self._find_single( declarations.calldef_matcher_t, *args, **keywds )
|