Changeset 70577 in vbox for trunk/src/libs/xpcom18a4
- Timestamp:
- Jan 13, 2018 6:43:03 PM (7 years ago)
- Location:
- trunk/src/libs/xpcom18a4/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/python/Makefile.kmk
r69111 r70577 125 125 $(PATH_STAGE_BIN)/VBoxXPCOM$(VBOX_SUFF_DLL) 126 126 127 # pymalloc abi variant. 128 VBoxPythonBase_m_EXTENDS = VBoxPythonBase 129 VBoxPythonBase_m_DEFS = MODULE_NAME_SUFFIX=m $(VBoxPythonBase_DEFS) 130 127 131 # 32-bit base. 128 132 VBoxPythonBase_x86_TEMPLATE = XPCOM-x86 … … 133 137 $(PATH_STAGE_BIN)/VBoxXPCOM-x86$(VBOX_SUFF_DLL) 134 138 139 # 32-bit pymalloc abi variant. 140 VBoxPythonBase_x86_m_EXTENDS = VBoxPythonBase_x86 141 VBoxPythonBase_x86_m_DEFS = MODULE_NAME_SUFFIX=_x86m $(VBoxPythonBase_DEFS) 142 135 143 136 144 ifdef VBOX_PYTHON26_INC … … 231 239 # 232 240 DLLS += VBoxPython3_2m 233 VBoxPython3_2m_EXTENDS = VBoxPythonBase 241 VBoxPython3_2m_EXTENDS = VBoxPythonBase_m 234 242 VBoxPython3_2m_EXTENDS_BY = appending 235 243 VBoxPython3_2m_TEMPLATE = XPCOM 236 244 VBoxPython3_2m_INCS = $(VBOX_PYTHON32M_INC) 237 245 VBoxPython3_2m_LIBS = $(VBOX_PYTHON32M_LIB) 246 VBoxPython3_2m_DEFS = MODULE_NAME_SUFFIX 238 247 239 248 ifdef VBOX_WITH_32_ON_64_MAIN_API 240 249 ifdef VBOX_PYTHON32M_LIB_X86 241 250 DLLS += VBoxPython3_2m_x86 242 VBoxPython3_2m_x86_EXTENDS = VBoxPythonBase_x86 251 VBoxPython3_2m_x86_EXTENDS = VBoxPythonBase_x86_m 243 252 VBoxPython3_2m_x86_EXTENDS_BY = appending 244 253 VBoxPython3_2m_x86_TEMPLATE = XPCOM … … 277 286 # 278 287 DLLS += VBoxPython3_3m 279 VBoxPython3_3m_EXTENDS = VBoxPythonBase 288 VBoxPython3_3m_EXTENDS = VBoxPythonBase_m 280 289 VBoxPython3_3m_EXTENDS_BY = appending 281 290 VBoxPython3_3m_TEMPLATE = XPCOM … … 286 295 ifdef VBOX_PYTHON33M_LIB_X86 287 296 DLLS += VBoxPython3_3m_x86 288 VBoxPython3_3m_x86_EXTENDS = VBoxPythonBase_x86 297 VBoxPython3_3m_x86_EXTENDS = VBoxPythonBase_x86_m 289 298 VBoxPython3_3m_x86_EXTENDS_BY = appending 290 299 VBoxPython3_3m_x86_TEMPLATE = XPCOM … … 323 332 # 324 333 DLLS += VBoxPython3_4m 325 VBoxPython3_4m_EXTENDS = VBoxPythonBase 334 VBoxPython3_4m_EXTENDS = VBoxPythonBase_m 326 335 VBoxPython3_4m_EXTENDS_BY = appending 327 336 VBoxPython3_4m_TEMPLATE = XPCOM … … 332 341 ifdef VBOX_PYTHON34M_LIB_X86 333 342 DLLS += VBoxPython3_4m_x86 334 VBoxPython3_4m_x86_EXTENDS = VBoxPythonBase_x86 343 VBoxPython3_4m_x86_EXTENDS = VBoxPythonBase_x86_m 335 344 VBoxPython3_4m_x86_EXTENDS_BY = appending 336 345 VBoxPython3_4m_x86_TEMPLATE = XPCOM … … 369 378 # 370 379 DLLS += VBoxPython3_5m 371 VBoxPython3_5m_EXTENDS = VBoxPythonBase 380 VBoxPython3_5m_EXTENDS = VBoxPythonBase_m 372 381 VBoxPython3_5m_EXTENDS_BY = appending 373 382 VBoxPython3_5m_TEMPLATE = XPCOM … … 378 387 ifdef VBOX_PYTHON35M_LIB_X86 379 388 DLLS += VBoxPython3_5m_x86 380 VBoxPython3_5m_x86_EXTENDS = VBoxPythonBase_x86 389 VBoxPython3_5m_x86_EXTENDS = VBoxPythonBase_x86_m 381 390 VBoxPython3_5m_x86_EXTENDS_BY = appending 382 391 VBoxPython3_5m_x86_TEMPLATE = XPCOM … … 415 424 # 416 425 DLLS += VBoxPython3_6m 417 VBoxPython3_6m_EXTENDS = VBoxPythonBase 426 VBoxPython3_6m_EXTENDS = VBoxPythonBase_m 418 427 VBoxPython3_6m_EXTENDS_BY = appending 419 428 VBoxPython3_6m_TEMPLATE = XPCOM … … 424 433 ifdef VBOX_PYTHON36M_LIB_X86 425 434 DLLS += VBoxPython3_6m_x86 426 VBoxPython3_6m_x86_EXTENDS = VBoxPythonBase_x86 435 VBoxPython3_6m_x86_EXTENDS = VBoxPythonBase_x86_m 427 436 VBoxPython3_6m_x86_EXTENDS_BY = appending 428 437 VBoxPython3_6m_x86_TEMPLATE = XPCOM … … 461 470 # 462 471 DLLS += VBoxPython3_7m 463 VBoxPython3_7m_EXTENDS = VBoxPythonBase 472 VBoxPython3_7m_EXTENDS = VBoxPythonBase_m 464 473 VBoxPython3_7m_EXTENDS_BY = appending 465 474 VBoxPython3_7m_TEMPLATE = XPCOM … … 470 479 ifdef VBOX_PYTHON37M_LIB_X86 471 480 DLLS += VBoxPython3_7m_x86 472 VBoxPython3_7m_x86_EXTENDS = VBoxPythonBase_x86 481 VBoxPython3_7m_x86_EXTENDS = VBoxPythonBase_x86_m 473 482 VBoxPython3_7m_x86_EXTENDS_BY = appending 474 VBoxPython3_7m_x86_TEMPLATE = XPCOM483 VBoxPython3_7m_x86_TEMPLATE_ = XPCOM 475 484 VBoxPython3_7m_x86_INCS = $(VBOX_PYTHON37M_INC) 476 485 VBoxPython3_7m_x86_LIBS = $(VBOX_PYTHON37M_LIB_X86) -
trunk/src/libs/xpcom18a4/python/src/VariantUtils.cpp
r62332 r70577 97 97 src = PyString_AS_STRING(s) + 2; 98 98 #else 99 if (!PyBytes_Check( obj))99 if (!PyBytes_Check(s)) 100 100 { 101 101 PyErr_SetString(PyExc_TypeError, "internal error in PyXPCOM, parameter must be a bytes object"); 102 102 return -1; 103 103 } 104 size = (PyBytes_GET_SIZE( obj) - 2) / sizeof(PRUnichar);105 src = PyBytes_AS_STRING( obj) + 2;104 size = (PyBytes_GET_SIZE(s) - 2) / sizeof(PRUnichar); 105 src = PyBytes_AS_STRING(s) + 2; 106 106 #endif 107 107 dest = (PRUnichar *)nsMemory::Alloc(sizeof(PRUnichar) * (size + 1));
Note:
See TracChangeset
for help on using the changeset viewer.