mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:14:52 +08:00
Ensuring that the swig typemaps for SBData set the size to 0 along with the pointer to NULL
There should be no functional changes as SBData creation functions already checked for NULL regardless of size - but it ensures consistency llvm-svn: 166978
This commit is contained in:
@@ -178,6 +178,7 @@
|
||||
}
|
||||
} else if ($input == Py_None) {
|
||||
$1 = NULL;
|
||||
$2 = 0;
|
||||
} else {
|
||||
PyErr_SetString(PyExc_TypeError,"not a list");
|
||||
return NULL;
|
||||
@@ -208,6 +209,7 @@
|
||||
}
|
||||
} else if ($input == Py_None) {
|
||||
$1 = NULL;
|
||||
$2 = 0;
|
||||
} else {
|
||||
PyErr_SetString(PyExc_TypeError,"not a list");
|
||||
return NULL;
|
||||
@@ -238,6 +240,7 @@
|
||||
}
|
||||
} else if ($input == Py_None) {
|
||||
$1 = NULL;
|
||||
$2 = 0;
|
||||
} else {
|
||||
PyErr_SetString(PyExc_TypeError,"not a list");
|
||||
return NULL;
|
||||
@@ -268,6 +271,7 @@
|
||||
}
|
||||
} else if ($input == Py_None) {
|
||||
$1 = NULL;
|
||||
$2 = 0;
|
||||
} else {
|
||||
PyErr_SetString(PyExc_TypeError,"not a list");
|
||||
return NULL;
|
||||
@@ -298,6 +302,7 @@
|
||||
}
|
||||
} else if ($input == Py_None) {
|
||||
$1 = NULL;
|
||||
$2 = 0;
|
||||
} else {
|
||||
PyErr_SetString(PyExc_TypeError,"not a list");
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user