Changeset 90630 in vbox for trunk/src/libs/xpcom18a4/python
- Timestamp:
- Aug 11, 2021 2:40:33 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 146242
- Location:
- trunk/src/libs/xpcom18a4/python/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/python/src/PyIID.cpp
r90623 r90630 266 266 ob_type = GetTypeObject(); 267 267 #endif 268 #if defined(Py_TRACE_REFS) || PY_VERSION_HEX < 0x03090000 /* VBox: Removed in 3.9, harmless. @bugref{10079} */ 268 #if PY_VERSION_HEX >= 0x03090000 /* VBox: Needed for 3.9 and up, includes _Py_NewReferences. @bugref{10079} */ /** @todo do this for older pythons too? We probably really should for Py_LIMITED_API builds... */ 269 PyObject_Init(this, ob_type); 270 #else 269 271 _Py_NewReference(this); 270 #endif271 #if PY_VERSION_HEX >= 0x03090000 /* VBox: Needed for 3.9 and up. @bugref{10079} */272 PyObject_Init(this, ob_type);273 272 #endif 274 273 -
trunk/src/libs/xpcom18a4/python/src/PyISupports.cpp
r90623 r90630 146 146 PR_AtomicIncrement(&cInterfaces); 147 147 PyXPCOM_DLLAddRef(); 148 #if defined(Py_TRACE_REFS) || PY_VERSION_HEX < 0x03090000 /* VBox: Removed in 3.9, harmless. @bugref{10079} */ 148 #if PY_VERSION_HEX >= 0x03090000 /* VBox: Needed for 3.9 and up, includes _Py_NewReferences. @bugref{10079} */ /** @todo do this for older pythons too? We probably really should for Py_LIMITED_API builds... */ 149 PyObject_Init(this, ob_type); 150 #else 149 151 _Py_NewReference(this); 150 #endif151 #if PY_VERSION_HEX >= 0x03090000 /* VBox: Needed for 3.9 and up. @bugref{10079} */152 PyObject_Init(this, ob_type);153 152 #endif 154 153 -
trunk/src/libs/xpcom18a4/python/src/TypeObject.cpp
r90623 r90630 435 435 /* Initialize the PyObject part - needed so we can keep instance in a PyDict: */ 436 436 ob_type = PyXPCOM_GetInterfaceType(); 437 # if defined(Py_TRACE_REFS) || PY_VERSION_HEX < 0x03090000 /* VBox: Removed in 3.9, harmless. @bugref{10079} */ 437 # if PY_VERSION_HEX >= 0x03090000 /* VBox: Needed for 3.9 and up, includes _Py_NewReferences. @bugref{10079} */ /** @todo do this for older pythons too? We probably really should for Py_LIMITED_API builds... */ 438 PyObject_Init(this, ob_type); 439 # else 438 440 _Py_NewReference(this); 439 # endif440 # if PY_VERSION_HEX >= 0x03090000 /* VBox: Needed for 3.9 and up. @bugref{10079} */441 PyObject_Init(this, ob_type);442 441 # endif 443 442
Note:
See TracChangeset
for help on using the changeset viewer.