示例#1
0
static PyObject*
test(
    PyObject* self,
    PyObject* args,
    PyObject* kwds) {

    pipeline_t p;

    pipeline_clear(&p);

    return Py_None;
}
示例#2
0
文件: astropy_wcs.c 项目: phn/astropy
/*@null@*/ static PyObject *
Wcs_new(
    PyTypeObject* type,
    /*@unused@*/ PyObject* args,
    /*@unused@*/ PyObject* kwds) {

    Wcs* self;
    self = (Wcs*)type->tp_alloc(type, 0);
    if (self != NULL) {
        pipeline_clear(&self->x);
        self->py_det2im[0]            = NULL;
        self->py_det2im[1]            = NULL;
        self->py_sip                  = NULL;
        self->py_distortion_lookup[0] = NULL;
        self->py_distortion_lookup[1] = NULL;
        self->py_wcsprm               = NULL;
    }
    return (PyObject*)self;
}