Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58902 - sandbox/numeric_bindings/libs/numeric/bindings/tools
From: rutger_at_[hidden]
Date: 2010-01-11 08:18:09


Author: rutger
Date: 2010-01-11 08:18:08 EST (Mon, 11 Jan 2010)
New Revision: 58902
URL: http://svn.boost.org/trac/boost/changeset/58902

Log:
Do not assume that workspace queries actually return minimum workspace sizes.

Text files modified:
   sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py | 8 +++++++-
   1 files changed, 7 insertions(+), 1 deletions(-)

Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py 2010-01-11 08:18:08 EST (Mon, 11 Jan 2010)
@@ -1261,7 +1261,13 @@
             argument_properties[ 'workspace_query_for' ] = []
           for name in grouped_arguments[ 'by_io' ][ 'workspace' ]:
             if name in match_workspace:
- argument_properties[ 'workspace_query_for' ] += [ name ]
+ # try to find proof that it is actually a minimum size workspace query.
+ match_min_size = re.compile( 'minimum(size|of|the|array|\s)+' + name, re.M | re.S ).findall( work_query_block )
+ if len( match_min_size ) == 0:
+ argument_properties[ 'workspace_query_for' ] += [ name ]
+ else:
+ print "Not relying on backend to return minimum size of " + name + " with a " + \
+ "workspace query."
 
     #
     # Handle CHARACTER comment blocks.


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk