src/_bonsai/ldapconnectiter.c
static PyObject *
ldapconnectiter_new(PyTypeObject *type, PyObject *args, PyObject *kwds) {
    LDAPConnectIter *self = NULL;
    PyObject *ts_empty_tuple = PyTuple_New(0);
    PyObject *ts_empty_dict = PyDict_New();

    if (ts_empty_tuple == NULL || ts_empty_dict == NULL) {
        Py_XDECREF(ts_empty_tuple);
        Py_XDECREF(ts_empty_dict);
        return NULL;
    }

    self = (LDAPConnectIter *)PyBaseObject_Type.tp_new(type, ts_empty_tuple,
                                                       ts_empty_dict);

    if (self != NULL) {
        self->conn = NULL;
        self->state = 0;
        self->message_id = 0;
        self->init_thread_data = NULL;
        self->init_thread = 0;
        self->timeout = -1;
        self->tls = 0;
    }

    Py_DECREF(ts_empty_tuple);
    Py_DECREF(ts_empty_dict);
    DEBUG("ldapconnectiter_new [self:%p]", self);
    return (PyObject *)self;
}
/*  Create a new LDAPConnectIter object. */
Create a new LDAPConnectIter object.
Create a new LDAPConnectIter object .
static PyObject *
ldapconnectiter_new(PyTypeObject *type, PyObject *args, PyObject *kwds) {
    LDAPConnectIter *self = NULL;
    PyObject *ts_empty_tuple = PyTuple_New(0);
    PyObject *ts_empty_dict = PyDict_New();
    if (ts_empty_tuple == NULL || ts_empty_dict == NULL) {
        Py_XDECREF(ts_empty_tuple);
        Py_XDECREF(ts_empty_dict);
        return NULL;
    }
    self = (LDAPConnectIter *)PyBaseObject_Type.tp_new(type, ts_empty_tuple,
                                                       ts_empty_dict);
    if (self != NULL) {
        self->conn = NULL;
        self->state = 0;
        self->message_id = 0;
        self->init_thread_data = NULL;
        self->init_thread = 0;
        self->timeout = -1;
        self->tls = 0;
    }
    Py_DECREF(ts_empty_tuple);
    Py_DECREF(ts_empty_dict);
    DEBUG("ldapconnectiter_new [self:%p]", self);
    return (PyObject *)self;
}
static PyObject * ldapconnectiter_new ( PyTypeObject * type , PyObject * args , PyObject * kwds ) { LDAPConnectIter * self = NULL ; PyObject * ts_empty_tuple = PyTuple_New ( 0 ) ; PyObject * ts_empty_dict = PyDict_New ( ) ; if ( ts_empty_tuple == NULL || ts_empty_dict == NULL ) { Py_XDECREF ( ts_empty_tuple ) ; Py_XDECREF ( ts_empty_dict ) ; return NULL ; } self = ( LDAPConnectIter * ) PyBaseObject_Type . tp_new ( type , ts_empty_tuple , ts_empty_dict ) ; if ( self != NULL ) { self -> conn = NULL ; self -> state = 0 ; self -> message_id = 0 ; self -> init_thread_data = NULL ; self -> init_thread = 0 ; self -> timeout = -1 ; self -> tls = 0 ; } Py_DECREF ( ts_empty_tuple ) ; Py_DECREF ( ts_empty_dict ) ; DEBUG ( " " , self ) ; return ( PyObject * ) self ; }
Create a new LDAPConnectIter object.
Create a new LDAPConnectIter object .