]> git.notmuchmail.org Git - notmuch/commitdiff
Rename NOTMUCH_MAX_TERM to NOTMUCH_TERM_MAX
authorCarl Worth <cworth@cworth.org>
Wed, 21 Oct 2009 21:10:00 +0000 (14:10 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 21 Oct 2009 21:10:00 +0000 (14:10 -0700)
Just better consistency with our naming schemes.

database.cc
notmuch-private.h

index b73b806ee8ea79c8a34e9d57aa18d592f943d5fd..00b03731206289b171736dd8f9c4044a67f8f0a8 100644 (file)
@@ -79,7 +79,7 @@ add_term (Xapian::Document doc,
 
     term = g_strdup_printf ("%s%s", prefix, value);
 
 
     term = g_strdup_printf ("%s%s", prefix, value);
 
-    if (strlen (term) <= NOTMUCH_MAX_TERM)
+    if (strlen (term) <= NOTMUCH_TERM_MAX)
        doc.add_term (term);
 
     g_free (term);
        doc.add_term (term);
 
     g_free (term);
index 384cc2de50e6cbaf2028c8ac5546f906a8682366..3e83c5c3b97d7b4de9a211a0a16857676e0b510d 100644 (file)
@@ -76,8 +76,10 @@ typedef enum {
     NOTMUCH_VALUE_DATE = 2
 } notmuch_value_t;
 
     NOTMUCH_VALUE_DATE = 2
 } notmuch_value_t;
 
-/* Xapian complains if we provide a term longer than this. */
-#define NOTMUCH_MAX_TERM 245
+/* Xapian (with flint backend) complains if we provide a term longer
+ * than this, but I haven't yet found a way to query the limit
+ * programmatically. */
+#define NOTMUCH_TERM_MAX 245
 
 /* message.cc */
 
 
 /* message.cc */