From: david@tethera.net
To: notmuch@notmuchmail.org
Cc: David Bremner <bremner@debian.org>
Subject: [PATCH 1/3] notmuch-tag: tidy formatting
Date: Wed, 14 Nov 2012 21:33:20 -0400 [thread overview]
Message-ID: <1352943202-1431-2-git-send-email-david@tethera.net> (raw)
In-Reply-To: <1352943202-1431-1-git-send-email-david@tethera.net>
From: David Bremner <bremner@debian.org>
This is just the result of running uncrustify.
---
notmuch-tag.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/notmuch-tag.c b/notmuch-tag.c
index d15f1ed..88d559b 100644
--- a/notmuch-tag.c
+++ b/notmuch-tag.c
@@ -31,7 +31,7 @@ handle_sigint (unused (int sig))
* result. It is not required for correctness, and if it does
* fail or produce a short write, we want to get out of the signal
* handler as quickly as possible, not retry it. */
- IGNORE_RESULT (write (2, msg, sizeof(msg)-1));
+ IGNORE_RESULT (write (2, msg, sizeof (msg) - 1));
interrupted = 1;
}
@@ -40,6 +40,7 @@ _escape_tag (char *buf, const char *tag)
{
const char *in = tag;
char *out = buf;
+
/* Boolean terms surrounded by double quotes can contain any
* character. Double quotes are quoted by doubling them. */
*out++ = '"';
@@ -85,8 +86,8 @@ _optimize_tag_query (void *ctx, const char *orig_query_string,
for (i = 0; tag_ops[i].tag; i++)
if (strlen (tag_ops[i].tag) > max_tag_len)
max_tag_len = strlen (tag_ops[i].tag);
- escaped = talloc_array(ctx, char, max_tag_len * 2 + 3);
- if (!escaped)
+ escaped = talloc_array (ctx, char, max_tag_len * 2 + 3);
+ if (! escaped)
return NULL;
/* Build the new query string */
@@ -140,9 +141,8 @@ tag_query (void *ctx, notmuch_database_t *notmuch, const char *query_string,
notmuch_query_set_sort (query, NOTMUCH_SORT_UNSORTED);
for (messages = notmuch_query_search_messages (query);
- notmuch_messages_valid (messages) && !interrupted;
- notmuch_messages_move_to_next (messages))
- {
+ notmuch_messages_valid (messages) && ! interrupted;
+ notmuch_messages_move_to_next (messages)) {
message = notmuch_messages_get (messages);
notmuch_message_freeze (message);
@@ -204,14 +204,14 @@ notmuch_tag_command (void *ctx, int argc, char *argv[])
}
if (argv[i][0] == '+' || argv[i][0] == '-') {
if (argv[i][0] == '+' && argv[i][1] == '\0') {
- fprintf(stderr, "Error: tag names cannot be empty.\n");
+ fprintf (stderr, "Error: tag names cannot be empty.\n");
return 1;
}
if (argv[i][0] == '+' && argv[i][1] == '-') {
/* This disallows adding the non-removable tag "-" and
* enables notmuch tag to take long options in the
* future. */
- fprintf(stderr, "Error: tag names must not start with '-'.\n");
+ fprintf (stderr, "Error: tag names must not start with '-'.\n");
return 1;
}
tag_ops[tag_ops_count].tag = argv[i] + 1;
--
1.7.10.4
next prev parent reply other threads:[~2012-11-15 1:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-15 1:33 Uncrustify on notmuch-restore.c, notmuch-dump.c and notmuch-tag.c david
2012-11-15 1:33 ` david [this message]
2012-11-15 1:33 ` [PATCH 2/3] notmuch-restore: tidy formatting david
2012-11-15 15:21 ` Tomi Ollila
2012-11-15 1:33 ` [PATCH 3/3] notmuch-dump: " david
2012-11-16 12:49 ` Uncrustify on notmuch-restore.c, notmuch-dump.c and notmuch-tag.c David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1352943202-1431-2-git-send-email-david@tethera.net \
--to=david@tethera.net \
--cc=bremner@debian.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).