1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-29 04:23:51 +03:00

r26088: Import some native-python python modules and move original python swig torture code to common python directory as well.

This commit is contained in:
Jelmer Vernooij
2007-11-21 13:07:16 +01:00
committed by Stefan Metzmacher
parent 4b94d5ca74
commit cbf656ff05
22 changed files with 483 additions and 683 deletions

View File

@@ -36,4 +36,15 @@
}
};
%typemap(in) NTSTATUS {
if (PyLong_Check($input))
$1 = NT_STATUS(PyLong_AsUnsignedLong($input));
else if (PyInt_Check($input))
$1 = NT_STATUS(PyInt_AsLong($input));
else {
PyErr_SetString(PyExc_TypeError, "Expected a long or an int");
return NULL;
}
}
#endif