1 Return-Path: <chris@chris-wilson.co.uk>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 0F0E0431FBF
\r
6 for <notmuch@notmuchmail.org>; Sat, 21 Nov 2009 15:14:53 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 Received: from olra.theworths.org ([127.0.0.1])
\r
9 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
10 with ESMTP id sCHZv7+vcFbU for <notmuch@notmuchmail.org>;
\r
11 Sat, 21 Nov 2009 15:14:52 -0800 (PST)
\r
12 Received: from azsmga102.ch.intel.com (mga12.intel.com [143.182.124.36])
\r
13 by olra.theworths.org (Postfix) with ESMTP id DB7D5431FBC
\r
14 for <notmuch@notmuchmail.org>; Sat, 21 Nov 2009 15:14:51 -0800 (PST)
\r
15 Received: from azsmga001.ch.intel.com ([10.2.17.19])
\r
16 by azsmga102.ch.intel.com with ESMTP; 21 Nov 2009 15:14:51 -0800
\r
18 X-IronPort-AV: E=Sophos;i="4.47,264,1257148800"; d="scan'208";a="214296817"
\r
19 Received: from unknown (HELO localhost.localdomain) ([10.255.16.190])
\r
20 by azsmga001.ch.intel.com with ESMTP; 21 Nov 2009 15:14:42 -0800
\r
21 From: Chris Wilson <chris@chris-wilson.co.uk>
\r
22 To: notmuch@notmuchmail.org
\r
23 Date: Sat, 21 Nov 2009 23:14:39 +0000
\r
24 Message-Id: <1258845279-24291-1-git-send-email-chris@chris-wilson.co.uk>
\r
25 X-Mailer: git-send-email 1.6.5.3
\r
26 Subject: [notmuch] [PATCH] lib/database.cc: coding style
\r
27 X-BeenThere: notmuch@notmuchmail.org
\r
28 X-Mailman-Version: 2.1.12
\r
30 List-Id: "Use and development of the notmuch mail system."
\r
31 <notmuch.notmuchmail.org>
\r
32 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
33 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
34 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
35 List-Post: <mailto:notmuch@notmuchmail.org>
\r
36 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
37 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
38 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
39 X-List-Received-Date: Sat, 21 Nov 2009 23:14:53 -0000
\r
41 Carl claims he must have been distracted when he wrote this...
\r
43 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
\r
45 lib/database.cc | 18 +++++++++++-------
\r
46 1 files changed, 11 insertions(+), 7 deletions(-)
\r
48 diff --git a/lib/database.cc b/lib/database.cc
\r
49 index 207246c..0f95aa1 100644
\r
50 --- a/lib/database.cc
\r
51 +++ b/lib/database.cc
\r
52 @@ -147,17 +147,20 @@ _find_prefix (const char *name)
\r
56 - for (i = 0; i < ARRAY_SIZE (BOOLEAN_PREFIX_INTERNAL); i++)
\r
57 + for (i = 0; i < ARRAY_SIZE (BOOLEAN_PREFIX_INTERNAL); i++) {
\r
58 if (strcmp (name, BOOLEAN_PREFIX_INTERNAL[i].name) == 0)
\r
59 return BOOLEAN_PREFIX_INTERNAL[i].prefix;
\r
62 - for (i = 0; i < ARRAY_SIZE (BOOLEAN_PREFIX_EXTERNAL); i++)
\r
63 + for (i = 0; i < ARRAY_SIZE (BOOLEAN_PREFIX_EXTERNAL); i++) {
\r
64 if (strcmp (name, BOOLEAN_PREFIX_EXTERNAL[i].name) == 0)
\r
65 return BOOLEAN_PREFIX_EXTERNAL[i].prefix;
\r
68 - for (i = 0; i < ARRAY_SIZE (PROBABILISTIC_PREFIX); i++)
\r
69 + for (i = 0; i < ARRAY_SIZE (PROBABILISTIC_PREFIX); i++) {
\r
70 if (strcmp (name, PROBABILISTIC_PREFIX[i].name) == 0)
\r
71 return PROBABILISTIC_PREFIX[i].prefix;
\r
74 INTERNAL_ERROR ("No prefix exists for '%s'\n", name);
\r
76 @@ -293,13 +296,14 @@ skip_space_and_comments (const char **str)
\r
79 while (*s && nesting) {
\r
83 - else if (*s == ')')
\r
84 + } else if (*s == ')') {
\r
86 - else if (*s == '\\')
\r
87 + } else if (*s == '\\') {
\r
94 @@ -508,7 +512,7 @@ notmuch_database_open (const char *path)
\r
95 error.get_msg().c_str());
\r
102 free (notmuch_path);
\r