diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-10-27 12:50:29 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-10-27 12:50:29 -0300 |
commit | e09048c630c6c0f992178e36d5479f6da73e7970 (patch) | |
tree | 89a5be8b8e6e23dff82ce73e4639823d2fd24a55 /shibokengenerator.cpp | |
parent | 46619953316a8bc7b5cfc5ac5536187658069273 (diff) |
reverted changes on the associations of C++ primitive types to Python
primitive types for they are used to decide equivalencies on the
ShibokenGenerator::isPyInt method
Diffstat (limited to 'shibokengenerator.cpp')
-rw-r--r-- | shibokengenerator.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp index 6f42bca72..aabd12a21 100644 --- a/shibokengenerator.cpp +++ b/shibokengenerator.cpp @@ -59,30 +59,30 @@ void ShibokenGenerator::initPrimitiveTypesCorrespondences() m_pythonPrimitiveTypeName.clear(); // PyBool - m_pythonPrimitiveTypeName["bool"] = "bool"; + m_pythonPrimitiveTypeName["bool"] = "PyBool"; // PyInt - m_pythonPrimitiveTypeName["char"] = "char"; - m_pythonPrimitiveTypeName["unsigned char"] = "unsigned char"; - m_pythonPrimitiveTypeName["int"] = "int"; - m_pythonPrimitiveTypeName["uint"] = "unsigned int"; - m_pythonPrimitiveTypeName["unsigned int"] = "unsigned int"; - m_pythonPrimitiveTypeName["short"] = "short"; - m_pythonPrimitiveTypeName["ushort"] = "unsigned short"; - m_pythonPrimitiveTypeName["unsigned short"] = "unsigned short"; - m_pythonPrimitiveTypeName["long"] = "long"; + m_pythonPrimitiveTypeName["char"] = "PyInt"; + m_pythonPrimitiveTypeName["unsigned char"] = "PyInt"; + m_pythonPrimitiveTypeName["int"] = "PyInt"; + m_pythonPrimitiveTypeName["uint"] = "PyInt"; + m_pythonPrimitiveTypeName["unsigned int"] = "PyInt"; + m_pythonPrimitiveTypeName["short"] = "PyInt"; + m_pythonPrimitiveTypeName["ushort"] = "PyInt"; + m_pythonPrimitiveTypeName["unsigned short"] = "PyInt"; + m_pythonPrimitiveTypeName["long"] = "PyInt"; // PyFloat - m_pythonPrimitiveTypeName["double"] = "float"; - m_pythonPrimitiveTypeName["float"] = "double"; + m_pythonPrimitiveTypeName["double"] = "PyFloat"; + m_pythonPrimitiveTypeName["float"] = "PyFloat"; // PyLong - m_pythonPrimitiveTypeName["unsigned long"] = "unsigned long"; - m_pythonPrimitiveTypeName["ulong"] = "unsigned long"; - m_pythonPrimitiveTypeName["long long"] = "PY_LONG_LONG"; - m_pythonPrimitiveTypeName["__int64"] = "PY_LONG_LONG"; - m_pythonPrimitiveTypeName["unsigned long long"] = "PY_LONG_LONG"; - m_pythonPrimitiveTypeName["unsigned __int64"] = "unsigned PY_LONG_LONG"; + m_pythonPrimitiveTypeName["unsigned long"] = "PyLong"; + m_pythonPrimitiveTypeName["ulong"] = "PyLong"; + m_pythonPrimitiveTypeName["long long"] = "PyLong"; + m_pythonPrimitiveTypeName["__int64"] = "PyLong"; + m_pythonPrimitiveTypeName["unsigned long long"] = "PyLong"; + m_pythonPrimitiveTypeName["unsigned __int64"] = "PyLong"; // Python operators m_pythonOperators.clear(); |