summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2014-07-06 17:41:19 -0400
committerBehdad Esfahbod <behdad@behdad.org>2014-07-06 17:42:33 -0400
commit5674b8a66354d657559c37e9d168bfbf48b931a8 (patch)
treeeafd58a0a283d01ee0cb65d3a8d91bd5fc53d37b
parent5b22776999b6052afe0e829b1a0c0935bbe1e9f7 (diff)
Comments
-rw-r--r--src/fcmatch.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fcmatch.c b/src/fcmatch.c
index 0c0a0670..5e02431e 100644
--- a/src/fcmatch.c
+++ b/src/fcmatch.c
@@ -256,6 +256,9 @@ FcCompareHash (FcValue *v1, FcValue *v2)
return FcCompareString (v1, v2);
}
+
+/* Define priorities to -1 for objects that don't have a compare function. */
+
#define PRI_NULL(n) \
PRI_ ## n ## _STRONG = -1, \
PRI_ ## n ## _WEAK = -1,
@@ -280,6 +283,9 @@ typedef enum _FcMatcherPriorityDummy {
#undef FC_OBJECT
+
+/* Canonical match priority order. */
+
#undef PRI1
#define PRI1(n) \
PRI_ ## n, \