PyUnicode_From_STR_String utility function which passes STR_String to PyUnicode_FromStringAndSize (saves a call to strlen).

Also made CValue::ConvertKeysToPython use faster list creation and improved some of the macro formatting.
This commit is contained in:
Campbell Barton
2011-11-06 01:39:36 +00:00
parent 2a7ade9de2
commit 4c17f8e5de
81 changed files with 311 additions and 226 deletions

View File

@@ -42,7 +42,7 @@
class SCA_IObject;
class SCA_PythonController : public SCA_IController
{
Py_Header;
Py_Header
#ifdef WITH_PYTHON
struct _object * m_bytecode; /* SCA_PYEXEC_SCRIPT only */
PyObject* m_function; /* SCA_PYEXEC_MODULE only */