[Fontconfig] fontconfig: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Jan 3 02:19:17 PST 2013


 src/fcobjs.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 8e143b4ec447a7ee6c501e7488a3c94db7e6a035
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Jan 3 04:19:12 2013 -0600

    Minor

diff --git a/src/fcobjs.c b/src/fcobjs.c
index 1aa4a77..146ca70 100644
--- a/src/fcobjs.c
+++ b/src/fcobjs.c
@@ -34,7 +34,10 @@ FcObjectTypeLookup (register const char *str, register unsigned int len);
 
 #include <string.h>
 
-static fc_atomic_int_t next_id = FC_MAX_BASE_OBJECT + 1;
+/* The 1000 is to leave some room for future added internal objects, such
+ * that caches from newer fontconfig can still be used with older fontconfig
+ * without getting confused. */
+static fc_atomic_int_t next_id = FC_MAX_BASE_OBJECT + 1000;
 struct FcObjectOtherTypeInfo {
     struct FcObjectOtherTypeInfo *next;
     FcObjectType object;


More information about the Fontconfig mailing list