? config.guess ? config.sub ? ltmain.sh Index: cairo/pycairo-context.c =================================================================== RCS file: /cvs/cairo/pycairo/cairo/pycairo-context.c,v retrieving revision 1.82 diff -u -r1.82 pycairo-context.c --- cairo/pycairo-context.c 18 Jan 2007 23:21:23 -0000 1.82 +++ cairo/pycairo-context.c 19 Jan 2007 21:24:52 -0000 @@ -207,7 +207,7 @@ int i; PyObject *rv = NULL; cairo_rectangle_t *r; - cairo_rectangle_list_t *rlist = cairo_copy_clip_rectangles (o->ctx); + cairo_rectangle_list_t *rlist = cairo_copy_clip_rectangle_list (o->ctx); if (rlist->status != CAIRO_STATUS_SUCCESS) { Pycairo_Check_Status (rlist->status); goto exit; @@ -346,20 +346,15 @@ pycairo_get_dash (PycairoContext *o) { double *dashes = NULL, offset; - int count = 0, i; + int count, i; PyObject *py_dashes = NULL, *rv = NULL; - cairo_status_t status; - cairo_get_dash_count (o->ctx, &count); + count = cairo_get_dash_count (o->ctx); dashes = PyMem_Malloc (count * sizeof(double)); if (dashes == NULL) return PyErr_NoMemory(); - status = cairo_get_dash (o->ctx, dashes, &offset); - if (status != CAIRO_STATUS_SUCCESS) { - Pycairo_Check_Status (status); - goto exit; - } + cairo_get_dash (o->ctx, dashes, &offset); py_dashes = PyTuple_New(count); if (py_dashes == NULL) @@ -382,8 +377,8 @@ static PyObject * pycairo_get_dash_count (PycairoContext *o) { - int count = 0; - cairo_get_dash_count (o->ctx, &count); + int count; + count = cairo_get_dash_count (o->ctx); return PyInt_FromLong (count); }