1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

s4:Remove "Py_RETURN_NONE" compatibility code

This was needed only by Python 2.3 which we no longer support.
This commit is contained in:
Matthias Dieter Wallnöfer
2010-02-04 11:17:40 +01:00
parent a0ac6a8632
commit e34637b2a6
11 changed files with 0 additions and 44 deletions

View File

@ -25,10 +25,6 @@
#include "libcli/util/pyerrors.h"
#include "param/pyparam.h"
#ifndef Py_RETURN_NONE
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#endif
static PyObject *PyString_FromStringOrNULL(const char *str)
{
if (str == NULL)

View File

@ -25,10 +25,6 @@
#include "pytalloc.h"
#include <tevent.h>
#ifndef Py_RETURN_NONE
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#endif
static PyObject *py_get_name_by_authtype(PyObject *self, PyObject *args)
{
int type;

View File

@ -23,10 +23,6 @@
#include "librpc/ndr/libndr.h"
#include "libcli/util/pyerrors.h"
#ifndef Py_RETURN_NONE
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#endif
static struct com_context *py_com_ctx = NULL; /* FIXME: evil global */
static PyObject *py_get_class_object(PyObject *self, PyObject *args)

View File

@ -31,10 +31,6 @@
#include "param/param.h"
#include "param/pyparam.h"
#ifndef Py_RETURN_NONE
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#endif
PyAPI_DATA(PyTypeObject) messaging_Type;
PyAPI_DATA(PyTypeObject) irpc_ClientConnectionType;

View File

@ -27,10 +27,6 @@
#include "auth/credentials/pycredentials.h"
#include "param/pyparam.h"
#ifndef Py_RETURN_NONE
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#endif
PyAPI_DATA(PyTypeObject) PyRegistryKey;
PyAPI_DATA(PyTypeObject) PyRegistry;
PyAPI_DATA(PyTypeObject) PyHiveKey;

View File

@ -26,10 +26,6 @@
#include "param/pyparam.h"
#include "auth/credentials/pycredentials.h"
#ifndef Py_RETURN_NONE
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#endif
static PyObject *py_dcerpc_run_function(dcerpc_InterfaceObject *iface,
const struct PyNdrRpcMethodDef *md,
PyObject *args, PyObject *kwargs)

View File

@ -23,10 +23,6 @@
#include "librpc/ndr/libndr.h"
#include "lib/util/wrap_xattr.h"
#ifndef Py_RETURN_NONE
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#endif
static PyObject *py_is_xattr_supported(PyObject *self)
{
#if !defined(HAVE_XATTR_SUPPORT)

View File

@ -27,10 +27,6 @@
#include "ntvfs/posix/vfs_posix.h"
#include "libcli/util/pyerrors.h"
#ifndef Py_RETURN_NONE
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#endif
static PyObject *py_is_xattr_supported(PyObject *self)
{
return Py_True;

View File

@ -29,10 +29,6 @@ typedef int Py_ssize_t;
typedef inquiry lenfunc;
#endif
#ifndef Py_RETURN_NONE
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#endif
#define PyLoadparmContext_AsLoadparmContext(obj) py_talloc_get_type(obj, struct loadparm_context)
PyAPI_DATA(PyTypeObject) PyLoadparmContext;

View File

@ -35,10 +35,6 @@
#include "param/pyparam.h"
#include "auth/credentials/pycredentials.h"
#ifndef Py_RETURN_NONE
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#endif
/* FIXME: These should be in a header file somewhere, once we finish moving
* away from SWIG .. */
#define PyErr_LDB_OR_RAISE(py_ldb, ldb) \

View File

@ -27,10 +27,6 @@
#include "../lib/util/data_blob.h"
#include "lib/tls/tls.h"
#ifndef Py_RETURN_NONE
#define Py_RETURN_NONE return Py_INCREF(Py_None), Py_None
#endif
typedef struct {
PyObject_HEAD
struct websrv_context *web;