-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1687 from wxWidgets/update-sip
Update sip to 4.19.23
- Loading branch information
Showing
7 changed files
with
40 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* The SIP module interface. | ||
* | ||
* Copyright (c) 2018 Riverbank Computing Limited <[email protected]> | ||
* Copyright (c) 2020 Riverbank Computing Limited <[email protected]> | ||
* | ||
* This file is part of SIP. | ||
* | ||
|
@@ -54,8 +54,8 @@ extern "C" { | |
/* | ||
* Define the SIP version number. | ||
*/ | ||
#define SIP_VERSION 0x041313 | ||
#define SIP_VERSION_STR "4.19.19" | ||
#define SIP_VERSION 0x041317 | ||
#define SIP_VERSION_STR "4.19.23" | ||
|
||
|
||
/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* SIP library code. | ||
* | ||
* Copyright (c) 2019 Riverbank Computing Limited <[email protected]> | ||
* Copyright (c) 2020 Riverbank Computing Limited <[email protected]> | ||
* | ||
* This file is part of SIP. | ||
* | ||
|
@@ -9338,6 +9338,7 @@ static PyObject *sip_api_get_reference(PyObject *self, int key) | |
return NULL; | ||
|
||
obj = PyDict_GetItem(dict, key_obj); | ||
Py_DECREF(key_obj); | ||
Py_XINCREF(obj); | ||
|
||
return obj; | ||
|
@@ -11320,6 +11321,11 @@ static SIP_SSIZE_T sipSimpleWrapper_getcharbuffer(sipSimpleWrapper *self, | |
*/ | ||
static void sipSimpleWrapper_dealloc(sipSimpleWrapper *self) | ||
{ | ||
PyObject *error_type, *error_value, *error_traceback; | ||
|
||
/* Save the current exception, if any. */ | ||
PyErr_Fetch(&error_type, &error_value, &error_traceback); | ||
|
||
forgetObject(self); | ||
|
||
/* | ||
|
@@ -11331,6 +11337,9 @@ static void sipSimpleWrapper_dealloc(sipSimpleWrapper *self) | |
|
||
/* Call the standard super-type dealloc. */ | ||
PyBaseObject_Type.tp_dealloc((PyObject *)self); | ||
|
||
/* Restore the saved exception. */ | ||
PyErr_Restore(error_type, error_value, error_traceback); | ||
} | ||
|
||
|
||
|
@@ -11727,6 +11736,11 @@ static int sipWrapper_clear(sipWrapper *self) | |
*/ | ||
static void sipWrapper_dealloc(sipWrapper *self) | ||
{ | ||
PyObject *error_type, *error_value, *error_traceback; | ||
|
||
/* Save the current exception, if any. */ | ||
PyErr_Fetch(&error_type, &error_value, &error_traceback); | ||
|
||
/* | ||
* We can't simply call the super-type because things have to be done in a | ||
* certain order. The first thing is to get rid of the wrapped instance. | ||
|
@@ -11737,6 +11751,9 @@ static void sipWrapper_dealloc(sipWrapper *self) | |
|
||
/* Skip the super-type's dealloc. */ | ||
PyBaseObject_Type.tp_dealloc((PyObject *)self); | ||
|
||
/* Restore the saved exception. */ | ||
PyErr_Restore(error_type, error_value, error_traceback); | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* The SIP module interface. | ||
* | ||
* Copyright (c) 2018 Riverbank Computing Limited <[email protected]> | ||
* Copyright (c) 2020 Riverbank Computing Limited <[email protected]> | ||
* | ||
* This file is part of SIP. | ||
* | ||
|
@@ -54,8 +54,8 @@ extern "C" { | |
/* | ||
* Define the SIP version number. | ||
*/ | ||
#define SIP_VERSION 0x041313 | ||
#define SIP_VERSION_STR "4.19.19" | ||
#define SIP_VERSION 0x041317 | ||
#define SIP_VERSION_STR "4.19.23" | ||
|
||
|
||
/* | ||
|