[cairo-commit] src/cairo.c src/cairo.h

Chris Wilson ickle at kemper.freedesktop.org
Thu Jan 3 15:00:49 PST 2008


 src/cairo.c |    2 +-
 src/cairo.h |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit b796a2f69d043f6884f42befdc156cb1c527d217
Author: Chris Wilson <ickle at cube.(none)>
Date:   Thu Jan 3 23:00:27 2008 +0000

    [cairo] Update CAIRO_STATUS_LAST_STATUS
    
    A couple of new errors have been added without updating the LAST_STATUS
    value...

diff --git a/src/cairo.c b/src/cairo.c
index 34d7537..170082f 100644
--- a/src/cairo.c
+++ b/src/cairo.c
@@ -67,7 +67,7 @@ static const cairo_t _cairo_nil = {
  * a bit of a pain, but it should be easy to always catch as long as
  * one adds a new test case to test a trigger of the new status value.
  */
-#define CAIRO_STATUS_LAST_STATUS CAIRO_STATUS_INVALID_INDEX
+#define CAIRO_STATUS_LAST_STATUS CAIRO_STATUS_TEMP_FILE_ERROR
 
 /**
  * _cairo_error:
diff --git a/src/cairo.h b/src/cairo.h
index d612093..4c58c14 100644
--- a/src/cairo.h
+++ b/src/cairo.h
@@ -236,6 +236,7 @@ typedef enum _cairo_status {
     CAIRO_STATUS_INVALID_INDEX,
     CAIRO_STATUS_CLIP_NOT_REPRESENTABLE,
     CAIRO_STATUS_TEMP_FILE_ERROR
+    /* after adding a new error: update CAIRO_STATUS_LAST_STATUS in cairo.c */
 } cairo_status_t;
 
 /**


More information about the cairo-commit mailing list