|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r59094 - in sandbox/numeric_bindings/libs/numeric/bindings/tools: . templates/level1
From: rutger_at_[hidden]
Date: 2010-01-17 08:41:29
Author: rutger
Date: 2010-01-17 08:41:28 EST (Sun, 17 Jan 2010)
New Revision: 59094
URL: http://svn.boost.org/trac/boost/changeset/59094
Log:
finallized iamax (generator side)
Text files modified:
sandbox/numeric_bindings/libs/numeric/bindings/tools/netlib.py | 10 ++++++++++
sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/level1/iamax.hpp | 2 ++
2 files changed, 12 insertions(+), 0 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-17 08:41:28 EST (Sun, 17 Jan 2010)
@@ -1639,6 +1639,16 @@
info_map[ 'level1_return_type' ] = 'void'
info_map[ 'return_statement' ] = ''
+ # Enable overrides of direct info-map stuff.
+ for key_name in [ 'level1_return_type' ]:
+ my_key = subroutine_group_name.lower() + '.' + subroutine_value_type + '.' + key_name
+ if my_has_key( my_key, template_map ):
+ user_value = template_map[ my_has_key( my_key, template_map ) ].strip()
+ if user_value == 'None':
+ user_value = None
+ info_map[ key_name ] = user_value
+
+
#
# Pass / check user-defined stuff right here.
#
Modified: sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/level1/iamax.hpp
==============================================================================
--- sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/level1/iamax.hpp (original)
+++ sandbox/numeric_bindings/libs/numeric/bindings/tools/templates/level1/iamax.hpp 2010-01-17 08:41:28 EST (Sun, 17 Jan 2010)
@@ -8,4 +8,6 @@
stride,X
$TEMPLATE[iamax.all.N.trait]
size,X
+$TEMPLATE[iamax.all.level1_return_type]
+std::ptrdiff_t
$TEMPLATE[end]
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