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:
Enrico Granata
2012-10-29 23:06:44 +00:00
parent 58a2c4e453
commit 7389f8454f

View File

@@ -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;