astropy/utils/xml/src/iterparse.c
/*
 * Initialize the memory for an IterParser object
 */
Initialize the memory for an IterParser object
Initialize the memory for an IterParser object
static PyObject *
IterParser_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{
    IterParser *self = NULL;
    self = (IterParser *)type->tp_alloc(type, 0);
    if (self != NULL) {
        self->parser          = NULL;
        self->fd              = NULL;
        self->file            = -1;
        self->read            = NULL;
        self->read_args       = NULL;
        self->dict_singleton  = NULL;
        self->td_singleton    = NULL;
        self->buffersize      = 0;
        self->buffer          = NULL;
        self->queue_read_idx  = 0;
        self->queue_write_idx = 0;
        self->text_alloc      = 0;
        self->text_size       = 0;
        self->text            = NULL;
        self->keep_text       = 0;
        self->done            = 0;
        self->queue_size      = 0;
        self->queue           = NULL;
        self->error_type      = NULL;
        self->error_value     = NULL;
        self->error_traceback = NULL;
    }
    return (PyObject *)self;
}
static PyObject * IterParser_new ( PyTypeObject * type , PyObject * args , PyObject * kwds ) { IterParser * self = NULL ; self = ( IterParser * ) type -> tp_alloc ( type , 0 ) ; if ( self != NULL ) { self -> parser = NULL ; self -> fd = NULL ; self -> file = -1 ; self -> read = NULL ; self -> read_args = NULL ; self -> dict_singleton = NULL ; self -> td_singleton = NULL ; self -> buffersize = 0 ; self -> buffer = NULL ; self -> queue_read_idx = 0 ; self -> queue_write_idx = 0 ; self -> text_alloc = 0 ; self -> text_size = 0 ; self -> text = NULL ; self -> keep_text = 0 ; self -> done = 0 ; self -> queue_size = 0 ; self -> queue = NULL ; self -> error_type = NULL ; self -> error_value = NULL ; self -> error_traceback = NULL ; } return ( PyObject * ) self ; }
Initialize the memory for an IterParser object
Initialize the memory for an IterParser object