[cairo-commit] cairo/src cairo.c,1.98,1.99 cairo.h,1.122,1.123

Carl Worth commit at pdx.freedesktop.org
Tue May 31 16:05:27 PDT 2005


Committed by: cworth

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv9012/src

Modified Files:
	cairo.c cairo.h 
Log Message:

        * src/cairo.h:
        * src/cairo.c: (cairo_status_to_string), (cairo_status_string):
        Add new function cairo_status_to_string an reimplement
        cairo_status_string in terms of the new function.


Index: cairo.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo.c,v
retrieving revision 1.98
retrieving revision 1.99
diff -u -d -r1.98 -r1.99
--- cairo.c	26 May 2005 18:35:46 -0000	1.98
+++ cairo.c	31 May 2005 23:05:11 -0000	1.99
@@ -2132,9 +2132,9 @@
 }
 
 const char *
-cairo_status_string (cairo_t *cr)
+cairo_status_to_string (cairo_status_t status)
 {
-    switch (cr->status) {
+    switch (status) {
     case CAIRO_STATUS_SUCCESS:
 	return "success";
     case CAIRO_STATUS_NO_MEMORY:
@@ -2168,6 +2168,12 @@
     return "<unknown error status>";
 }
 
+const char *
+cairo_status_string (cairo_t *cr)
+{
+    return cairo_status_to_string (cr->status);
+}
+
 void
 _cairo_restrict_value (double *value, double min, double max)
 {

Index: cairo.h
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo.h,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -d -r1.122 -r1.123
--- cairo.h	26 May 2005 18:35:46 -0000	1.122
+++ cairo.h	31 May 2005 23:05:11 -0000	1.123
@@ -880,6 +880,9 @@
 cairo_status (cairo_t *cr);
 
 const char *
+cairo_status_to_string (cairo_status_t status);
+
+const char *
 cairo_status_string (cairo_t *cr);
 
 /* Surface manipulation */




More information about the cairo-commit mailing list