Revision: 7232
http://svn.sourceforge.net/mahogany/?rev=7232&view=rev
Author: vadz
Date: 2007-04-03 07:27:22 -0700 (Tue, 03 Apr 2007)
Log Message:
-----------
also wrap PyBool_FromLong
Modified Paths:
--------------
trunk/M/include/MPython.h
trunk/M/src/Python/PythonDll.cpp
Modified: trunk/M/include/MPython.h
===================================================================
--- trunk/M/include/MPython.h 2007-04-03 14:10:14 UTC (rev 7231)
+++ trunk/M/include/MPython.h 2007-04-03 14:27:22 UTC (rev 7232)
@@ -130,7 +130,8 @@
M_PY_WRAPPER_DECL(PyObject *, _PyInstance_Lookup, (PyObject *, PyObject *));
M_PY_VAR_DECL(PyTypeObject *, PyInstance_Type);
- // ints and longs
+ // integer types
+ M_PY_WRAPPER_DECL(PyObject *, PyBool_FromLong, (long));
M_PY_WRAPPER_DECL(long, PyInt_AsLong, (PyObject *));
M_PY_WRAPPER_DECL(PyObject*, PyInt_FromLong, (long));
M_PY_WRAPPER_DECL(PyObject *, PyLong_FromUnsignedLong, (unsigned long));
@@ -277,7 +278,8 @@
#define _PyInstance_Lookup M__PyInstance_Lookup
#define PyInstance_Type (*M_PyInstance_Type)
-// ints and longs
+// integer types
+#define PyBool_FromLong M_PyBool_FromLong
#define PyInt_AsLong M_PyInt_AsLong
#define PyInt_FromLong M_PyInt_FromLong
#define PyLong_FromUnsignedLong M_PyLong_FromUnsignedLong
Modified: trunk/M/src/Python/PythonDll.cpp
===================================================================
--- trunk/M/src/Python/PythonDll.cpp 2007-04-03 14:10:14 UTC (rev 7231)
+++ trunk/M/src/Python/PythonDll.cpp 2007-04-03 14:27:22 UTC (rev 7232)
@@ -108,7 +108,8 @@
M_PY_WRAPPER_DEF(_PyInstance_Lookup);
M_PY_VAR_DEF(PyInstance_Type);
- // ints and longs
+ // integer types
+ M_PY_WRAPPER_DEF(PyBool_FromLong);
M_PY_WRAPPER_DEF(PyInt_AsLong);
M_PY_WRAPPER_DEF(PyInt_FromLong);
M_PY_WRAPPER_DEF(PyLong_FromUnsignedLong);
@@ -269,7 +270,8 @@
PYTHON_SYMBOL(PyInstance_Type)
PYTHON_SYMBOL(_PyInstance_Lookup)
- // ints and longs
+ // integer types
+ PYTHON_SYMBOL(PyBool_FromLong)
PYTHON_SYMBOL(PyInt_AsLong)
PYTHON_SYMBOL(PyInt_FromLong)
PYTHON_SYMBOL(PyLong_FromUnsignedLong)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.