[pygccxml-commit] SF.net SVN: pygccxml:[1804] pyplusplus_dev
Brought to you by:
mbaas,
roman_yakovenko
|
From: <rom...@us...> - 2010-01-14 12:55:02
|
Revision: 1804
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1804&view=rev
Author: roman_yakovenko
Date: 2010-01-14 12:54:55 +0000 (Thu, 14 Jan 2010)
Log Message:
-----------
implement PY_SIGNATURE functionality
Modified Paths:
--------------
pyplusplus_dev/environment.py
pyplusplus_dev/pyplusplus/code_repository/call_policies.py
pyplusplus_dev/pyplusplus/code_repository/return_range.py
Modified: pyplusplus_dev/environment.py
===================================================================
--- pyplusplus_dev/environment.py 2010-01-14 10:17:58 UTC (rev 1803)
+++ pyplusplus_dev/environment.py 2010-01-14 12:54:55 UTC (rev 1804)
@@ -32,7 +32,7 @@
if 'roman' in getpass.getuser():
if sys.platform == 'win32':
scons.suffix = '.pyd'
- scons.ccflags = ['/MD', '/EHsc', '/GR', '/Zc:wchar_t', '/Zc:forScope', '-DBOOST_PYTHON_NO_PY_SIGNATURES' ]
+ scons.ccflags = ['/MD', '/EHsc', '/GR', '/Zc:wchar_t', '/Zc:forScope' ]
boost.libs = [ r'e:\dev\boost_svn\bin.v2\libs\python\build\msvc-9.0\release\threading-multi' ]
boost.include = 'e:/dev/boost_svn'
python.libs = 'c:/program files/python26/libs'
@@ -41,14 +41,14 @@
os.nice( 20 )
print 'test process niceness: 20'
scons.suffix = '.so'
- scons.ccflags = ['-DBOOST_PYTHON_NO_PY_SIGNATURES' ]
+ scons.ccflags = []
boost.libs = ['/home/roman/include/libs' ]
boost.include = '/home/roman/boost_svn'
python.include = '/usr/include/python2.6'
elif 'root' == getpass.getuser():
if sys.platform == 'win32':
scons.suffix = '.pyd'
- scons.ccflags = ['/MD', '/EHsc', '/GR', '/Zc:wchar_t', '/Zc:forScope', '-DBOOST_PYTHON_NO_PY_SIGNATURES' ]
+ scons.ccflags = ['/MD', '/EHsc', '/GR', '/Zc:wchar_t', '/Zc:forScope' ]
boost.libs = [ 'd:/dev/boost_svn/bin.v2/libs/python/build/msvc-7.1/release/threading-multi' ]
boost.include = 'd:/dev/boost_svn'
python.libs = 'e:/python25/libs'
Modified: pyplusplus_dev/pyplusplus/code_repository/call_policies.py
===================================================================
--- pyplusplus_dev/pyplusplus/code_repository/call_policies.py 2010-01-14 10:17:58 UTC (rev 1803)
+++ pyplusplus_dev/pyplusplus/code_repository/call_policies.py 2010-01-14 12:54:55 UTC (rev 1804)
@@ -161,6 +161,11 @@
MemoryManager::deallocate_array( arr );
return bpl::incref( bpl::tuple( list_ ).ptr() );
}
+
+ static PyTypeObject const *get_pytype(){
+ return &PyTuple_Type;
+ }
+
};
}
Modified: pyplusplus_dev/pyplusplus/code_repository/return_range.py
===================================================================
--- pyplusplus_dev/pyplusplus/code_repository/return_range.py 2010-01-14 10:17:58 UTC (rev 1803)
+++ pyplusplus_dev/pyplusplus/code_repository/return_range.py 2010-01-14 12:54:55 UTC (rev 1804)
@@ -34,8 +34,8 @@
namespace detail{
-struct return_raw_data_ref{
-
+struct return_raw_data_ref
+{
template <class T>
struct apply{
@@ -57,10 +57,12 @@
return PyCObject_FromVoidPtr( data, NULL );
}
}
+
+ static PyTypeObject const * get_pytype(){
+ return &PyCObject_Type;
+ }
};
-
};
-
};
} //detail
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|