[cairo-commit] src/cairo-font-face.c src/cairoint.h

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Apr 21 14:32:02 PDT 2015


 src/cairo-font-face.c |    7 +++++++
 src/cairoint.h        |    1 +
 2 files changed, 8 insertions(+)

New commits:
commit 853e822c9c8f6d86c730d27e99458dea8b6717e1
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Apr 21 14:31:53 2015 -0700

    Oops, fixup previous commit

diff --git a/src/cairo-font-face.c b/src/cairo-font-face.c
index 3bcd2a1..795951b 100644
--- a/src/cairo-font-face.c
+++ b/src/cairo-font-face.c
@@ -67,6 +67,13 @@ const cairo_font_face_t _cairo_font_face_nil = {
     { 0, 0, 0, NULL },			/* user_data */
     NULL
 };
+const cairo_font_face_t _cairo_font_face_nil_file_not_found = {
+    { 0 },				/* hash_entry */
+    CAIRO_STATUS_FILE_NOT_FOUND,	/* status */
+    CAIRO_REFERENCE_COUNT_INVALID,	/* ref_count */
+    { 0, 0, 0, NULL },			/* user_data */
+    NULL
+};
 
 cairo_status_t
 _cairo_font_face_set_error (cairo_font_face_t *font_face,
diff --git a/src/cairoint.h b/src/cairoint.h
index 5bca003..555aa89 100644
--- a/src/cairoint.h
+++ b/src/cairoint.h
@@ -814,6 +814,7 @@ _cairo_color_get_content (const cairo_color_t *color) cairo_pure;
 /* cairo-font-face.c */
 
 extern const cairo_private cairo_font_face_t _cairo_font_face_nil;
+extern const cairo_private cairo_font_face_t _cairo_font_face_nil_file_not_found;
 
 cairo_private void
 _cairo_font_face_init (cairo_font_face_t               *font_face,


More information about the cairo-commit mailing list