[cairo-commit] pycairo/cairo pycairo-surface.c,1.57,1.58
Steve Chaplin
commit at pdx.freedesktop.org
Wed Sep 28 07:35:33 PDT 2005
Committed by: stevech1097
Update of /cvs/cairo/pycairo/cairo
In directory gabe:/tmp/cvs-serv27387/cairo
Modified Files:
pycairo-surface.c
Log Message:
'SC'
Index: pycairo-surface.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-surface.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -d -r1.57 -r1.58
--- pycairo-surface.c 22 Sep 2005 12:43:41 -0000 1.57
+++ pycairo-surface.c 28 Sep 2005 14:35:31 -0000 1.58
@@ -192,8 +192,8 @@
#ifdef CAIRO_HAS_PNG_FUNCTIONS
static cairo_status_t
-pycairo_write_func (void *closure, const unsigned char *data,
- unsigned int length)
+_write_func (void *closure, const unsigned char *data,
+ unsigned int length)
{
if (fwrite (data, 1, (size_t) length, (FILE *)closure) != length)
return CAIRO_STATUS_WRITE_ERROR;
@@ -222,8 +222,7 @@
"which must be a filename (str) or file object");
return NULL;
}
- status = cairo_surface_write_to_png_stream (o->surface, pycairo_write_func,
- fp);
+ status = cairo_surface_write_to_png_stream (o->surface, _write_func, fp);
if (PyObject_TypeCheck (file, &PyBaseString_Type))
fclose (fp);
@@ -443,7 +442,7 @@
#ifdef CAIRO_HAS_PNG_FUNCTIONS
static cairo_status_t
-pycairo_read_func (void *closure, unsigned char *data, unsigned int length)
+_read_func (void *closure, unsigned char *data, unsigned int length)
{
if (fread (data, 1, (size_t) length, (FILE *)closure) != length)
return CAIRO_STATUS_READ_ERROR;
@@ -474,8 +473,7 @@
return NULL;
}
- surface = cairo_image_surface_create_from_png_stream (pycairo_read_func,
- fp);
+ surface = cairo_image_surface_create_from_png_stream (_read_func, fp);
if (PyObject_TypeCheck (o, &PyBaseString_Type))
fclose (fp);
More information about the cairo-commit
mailing list