Commited SF#2158938: change all SWIG symbols start with Py to a new name.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10961 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Haoyu Bai 2008-12-03 18:43:44 +00:00
commit 8f84447860
23 changed files with 666 additions and 424 deletions

View file

@ -10,7 +10,7 @@
*
* For example:
* swig::LANGUAGE_OBJ is GC_VALUE in Ruby
* swig::LANGUAGE_OBJ is PyObject_ptr in python
* swig::LANGUAGE_OBJ is SwigPtr_PyObject in python
*
*
*/
@ -53,8 +53,8 @@ namespace std
#endif
#ifdef SWIGPYTHON
%template() pair<swig::PyObject_ptr, swig::PyObject_ptr>;
%template(pymap) map<swig::PyObject_ptr, swig::PyObject_ptr>;
%template() pair<swig::SwigPtr_PyObject, swig::SwigPtr_PyObject>;
%template(pymap) map<swig::SwigPtr_PyObject, swig::SwigPtr_PyObject>;
#endif
}

View file

@ -10,7 +10,7 @@
*
* For example:
* swig::LANGUAGE_OBJ is GC_VALUE in Ruby
* swig::LANGUAGE_OBJ is PyObject_ptr in python
* swig::LANGUAGE_OBJ is SwigPtr_PyObject in python
*
*
*/
@ -36,5 +36,5 @@
#endif
#if defined(SWIGPYTHON)
%template(pyset) std::set<swig::PyObject_ptr>;
%template(pyset) std::set<swig::SwigPtr_PyObject>;
#endif

View file

@ -129,7 +129,7 @@ std::vector<std::string> vecStr(std::vector<std::string> v) {
int extractInt(int *p) { return *p; }
%}
%template(pyvector) std::vector<swig::PyObject_ptr>;
%template(pyvector) std::vector<swig::SwigPtr_PyObject>;
namespace std {
%template(ConstShortVector) vector<const short *>;