Revision: 583
http://svn.sourceforge.net/pygccxml/?rev=583&view=rev
Author: roman_yakovenko
Date: 2006-09-25 03:10:06 -0700 (Mon, 25 Sep 2006)
Log Message:
-----------
fixing small bug generating of *_OVERLOADS macro
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/code_creators/calldef.py
Modified: pyplusplus_dev/pyplusplus/code_creators/calldef.py
===================================================================
--- pyplusplus_dev/pyplusplus/code_creators/calldef.py 2006-09-25 08:51:35 UTC (rev 582)
+++ pyplusplus_dev/pyplusplus/code_creators/calldef.py 2006-09-25 10:10:06 UTC (rev 583)
@@ -34,7 +34,7 @@
declaration_based.declaration_based_t.__init__( self, declaration=function )
self._wrapper = wrapper
self._associated_decl_creators = []
-
+
@property
def associated_decl_creators( self ):
""" references to declaration code creators. """
@@ -1159,12 +1159,13 @@
min_ = None
max_ = 0
for f in self.functions:
- args_ = len( f.arguments )
+ f_max = len( f.arguments )
+ f_min = f_max - len( filter( lambda arg: arg.default_value, f.arguments ) )
if None is min_:
- min_ = args_
+ min_ = f_min
else:
- min_ = min( min_, args_ )
- max_tmp = max( max_, args_ )
+ min_ = min( min_, f_min )
+ max_tmp = max( max_, f_max )
if max_ < max_tmp:
max_ = max_tmp
self._max_fun = f
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|