From: Carl Worth <cworth@cworth.org>
Date: Wed, 21 Oct 2009 21:10:00 +0000 (-0700)
Subject: Rename NOTMUCH_MAX_TERM to NOTMUCH_TERM_MAX
X-Git-Tag: 0.1~792
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=22b2265cacb2930c11b75282046707355446788e;p=notmuch

Rename NOTMUCH_MAX_TERM to NOTMUCH_TERM_MAX

Just better consistency with our naming schemes.
---

diff --git a/database.cc b/database.cc
index b73b806e..00b03731 100644
--- a/database.cc
+++ b/database.cc
@@ -79,7 +79,7 @@ add_term (Xapian::Document doc,
 
     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);
diff --git a/notmuch-private.h b/notmuch-private.h
index 384cc2de..3e83c5c3 100644
--- a/notmuch-private.h
+++ b/notmuch-private.h
@@ -76,8 +76,10 @@ typedef enum {
     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 */