mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
pidl: Use PY_SSIZE_T_CLEAN
This changes the type used for # arguments to PyArg_ParseTupleAndKeywords Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
parent
4894811daf
commit
638c611796
@ -282,7 +282,7 @@ sub PythonStruct($$$$$$)
|
||||
$self->indent;
|
||||
$self->pidl("$cname *object = ($cname *)pytalloc_get_ptr(py_obj);");
|
||||
$self->pidl("DATA_BLOB blob;");
|
||||
$self->pidl("int blob_length = 0;");
|
||||
$self->pidl("Py_ssize_t blob_length = 0;");
|
||||
$self->pidl("enum ndr_err_code err;");
|
||||
$self->pidl("const char * const kwnames[] = { \"data_blob\", \"allow_remaining\", NULL };");
|
||||
$self->pidl("PyObject *allow_remaining_obj = NULL;");
|
||||
@ -1490,6 +1490,7 @@ sub Parse($$$$$)
|
||||
|
||||
$self->pidl_hdr("
|
||||
/* Python wrapper functions auto-generated by pidl */
|
||||
#define PY_SSIZE_T_CLEAN 1 /* We use Py_ssize_t for PyArg_ParseTupleAndKeywords */
|
||||
#include <Python.h>
|
||||
#include \"includes.h\"
|
||||
#include <pytalloc.h>
|
||||
|
Loading…
Reference in New Issue
Block a user