]> granicus.if.org Git - neomutt/commitdiff
clang-format
authorRichard Russon <rich@flatcap.org>
Sun, 15 Jul 2018 15:07:44 +0000 (16:07 +0100)
committerRichard Russon <rich@flatcap.org>
Mon, 16 Jul 2018 22:47:18 +0000 (23:47 +0100)
15 files changed:
curs_main.c
email/address.h
email/body.h
email/email.h
email/idna2.h
email/parse.c
email/rfc2047.c
email/tags.h
hcache/hcache.c
hcache/serialize.c
mutt/history.h
mutt/list.h
mutt/regex3.h
pager.c
send.c

index 3a8f7775d697832f2aa91ae95e1333c1e7b060ac..68fb5c68f5d59ff35e332fdd717b2fd096993fbe 100644 (file)
@@ -2951,7 +2951,8 @@ int mutt_index_menu(void)
         {
           mutt_check_traditional_pgp(tag ? NULL : CURHDR, &menu->redraw);
         }
-        ci_send_message(SEND_REPLY | SEND_GROUP_REPLY, NULL, NULL, Context, tag ? NULL : CURHDR);
+        ci_send_message(SEND_REPLY | SEND_GROUP_REPLY, NULL, NULL, Context,
+                        tag ? NULL : CURHDR);
         menu->redraw = REDRAW_FULL;
         break;
 
@@ -2987,7 +2988,8 @@ int mutt_index_menu(void)
         {
           mutt_check_traditional_pgp(tag ? NULL : CURHDR, &menu->redraw);
         }
-        ci_send_message(SEND_REPLY | SEND_LIST_REPLY, NULL, NULL, Context, tag ? NULL : CURHDR);
+        ci_send_message(SEND_REPLY | SEND_LIST_REPLY, NULL, NULL, Context,
+                        tag ? NULL : CURHDR);
         menu->redraw = REDRAW_FULL;
         break;
 
index 2d47a6eb5b3765df3226df6c05bc1f2d50323a37..a3033eabaea28a4ac9cbb4aa1ac1d54e2b8b3da8 100644 (file)
@@ -33,7 +33,7 @@ struct Address
 {
   char *personal; /**< real name of address */
   char *mailbox;  /**< mailbox and host address */
-  bool group : 1;      /**< group mailbox? */
+  bool group : 1; /**< group mailbox? */
   bool is_intl : 1;
   bool intl_checked : 1;
   struct Address *next;
index edaf25600d7cb13cdb49763d18574a6af3a57bde..97bf84019eb5cd0acc7e6e635ce23acb3793b19d 100644 (file)
@@ -39,22 +39,22 @@ struct Body
   char *description;            /**< content-description */
   char *form_name;              /**< Content-Disposition form-data name param */
   long hdr_offset;              /**< offset in stream where the headers begin.
-                                 * this info is used when invoking metamail,
-                                 * where we need to send the headers of the
-                                 * attachment */
+                            * this info is used when invoking metamail,
+                            * where we need to send the headers of the
+                            * attachment */
   LOFF_T offset;                /**< offset where the actual data begins */
   LOFF_T length;                /**< length (in bytes) of attachment */
   char *filename;               /**< when sending a message, this is the file
-                                 * to which this structure refers */
+                            * to which this structure refers */
   char *d_filename;             /**< filename to be used for the
-                                 * content-disposition header.
-                                 * If NULL, filename is used
-                                 * instead.  */
+                            * content-disposition header.
+                            * If NULL, filename is used
+                            * instead.  */
   char *charset;                /**< charset of attached file */
   struct Content *content;      /**< structure used to store detailed info about
-                                 * the content of the attachment.  this is used
-                                 * to determine what content-transfer-encoding
-                                 * is required when sending mail.  */
+                            * the content of the attachment.  this is used
+                            * to determine what content-transfer-encoding
+                            * is required when sending mail.  */
   struct Body *next;            /**< next attachment in the list */
   struct Body *parts;           /**< parts of a multipart or message/rfc822 */
   struct Header *hdr;           /**< header information for message/rfc822 */
@@ -95,7 +95,6 @@ struct Body
 
   bool collapsed : 1;           /**< used by recvattach */
   bool attach_qualifies : 1;
-
 };
 
 bool         mutt_body_cmp_strict(const struct Body *b1, const struct Body *b2);
index 456631cf77c14b89430ca446ade61707c9a9cd3e..4f26f8e76a0fd6813ccf1c7973a3ffe8533c5f7c 100644 (file)
@@ -57,8 +57,8 @@
 #include "header.h"
 #include "idna2.h"
 #include "mime.h"
-#include "parse.h"
 #include "parameter.h"
+#include "parse.h"
 #include "rfc2047.h"
 #include "rfc2231.h"
 #include "tags.h"
index 50645d9fb516fd632961cc73ead0128b35d14b3e..e615d4d03e5c2816babb4958915faf531078855d 100644 (file)
@@ -36,5 +36,4 @@ char *      mutt_idna_local_to_intl(const char *user, const char *domain);
 const char *mutt_idna_print_version(void);
 int         mutt_idna_to_ascii_lz(const char *input, char **output, int flags);
 
-
 #endif /* _EMAIL_IDNA_H */
index 76864238d01deabc1148e89114e2662f728b0bcf..0f627915267687fc7b4832bcb92678a3c84b5703 100644 (file)
@@ -953,8 +953,7 @@ char *mutt_rfc822_read_line(FILE *f, char *line, size_t *linelen)
  *
  * Caller should free the Envelope using mutt_env_free().
  */
-struct Envelope *mutt_rfc822_read_header(FILE *f, struct Header *hdr,
-                                         bool user_hdrs, bool weed)
+struct Envelope *mutt_rfc822_read_header(FILE *f, struct Header *hdr, bool user_hdrs, bool weed)
 {
   struct Envelope *e = mutt_env_new();
   char *line = mutt_mem_malloc(LONG_STRING);
index 6ff6a56dbfc60e14ff3a460156a096ff60fc80d3..35125fcdd1665a41dd555a878c27e5589677e42e 100644 (file)
@@ -425,9 +425,8 @@ static char *decode_word(const char *s, size_t len, enum ContentEncoding enc)
  * @param specials Special characters to be encoded
  * @retval 0 Success
  */
-static int encode(const char *d, size_t dlen, int col,
-                           const char *fromcode, const char *charsets, char **e,
-                           size_t *elen, const char *specials)
+static int encode(const char *d, size_t dlen, int col, const char *fromcode,
+                  const char *charsets, char **e, size_t *elen, const char *specials)
 {
   int rc = 0;
   char *buf = NULL;
index a177c4caae04a7255ff5cfe183281347d1b7acc0..5b11cf31294164d1410f4f7167c9d7c48a710728 100644 (file)
@@ -39,10 +39,10 @@ extern struct Hash *TagTransforms;
  */
 struct TagNode
 {
-    char *name;
-    char *transformed;
-    bool hidden;
-    STAILQ_ENTRY(TagNode) entries;
+  char *name;
+  char *transformed;
+  bool hidden;
+  STAILQ_ENTRY(TagNode) entries;
 };
 STAILQ_HEAD(TagHead, TagNode);
 
index ff0513f30e85471ae52843aa79a79912edf33103..98187937dc77ccab9fcb5739e9e3ae3f712dc3f7 100644 (file)
@@ -132,7 +132,7 @@ static bool crc_matches(const char *d, unsigned int crc)
   if (!d)
     return false;
 
-  unsigned int mycrc = *(unsigned int *)(d + sizeof(union Validate));
+  unsigned int mycrc = *(unsigned int *) (d + sizeof(union Validate));
 
   return (crc == mycrc);
 }
index 3de8bebac6c8ffc99839221c2d48b3d8b53e0e5f..82fe9aa965009a7d806dc2e6dec53f6605f2f009 100644 (file)
@@ -107,7 +107,7 @@ void serial_restore_int(unsigned int *i, const unsigned char *d, int *off)
  * @retval ptr End of the newly packed binary
  */
 unsigned char *serial_dump_char_size(char *c, unsigned char *d, int *off,
-                                            ssize_t size, bool convert)
+                                     ssize_t size, bool convert)
 {
   char *p = c;
 
@@ -195,8 +195,7 @@ void serial_restore_char(char **c, const unsigned char *d, int *off, bool conver
  * @param convert If true, the strings will be converted to utf-8
  * @retval ptr End of the newly packed binary
  */
-unsigned char *serial_dump_address(struct Address *a, unsigned char *d,
-                                          int *off, bool convert)
+unsigned char *serial_dump_address(struct Address *a, unsigned char *d, int *off, bool convert)
 {
   unsigned int counter = 0;
   unsigned int start_off = *off;
@@ -224,8 +223,7 @@ unsigned char *serial_dump_address(struct Address *a, unsigned char *d,
  * @param off     Offset into the blob
  * @param convert If true, the strings will be converted from utf-8
  */
-void serial_restore_address(struct Address **a, const unsigned char *d,
-                                   int *off, bool convert)
+void serial_restore_address(struct Address **a, const unsigned char *d, int *off, bool convert)
 {
   unsigned int counter = 0;
   unsigned int g = 0;
@@ -254,8 +252,7 @@ void serial_restore_address(struct Address **a, const unsigned char *d,
  * @param convert If true, the strings will be converted to utf-8
  * @retval ptr End of the newly packed binary
  */
-unsigned char *serial_dump_stailq(struct ListHead *l, unsigned char *d,
-                                         int *off, bool convert)
+unsigned char *serial_dump_stailq(struct ListHead *l, unsigned char *d, int *off, bool convert)
 {
   unsigned int counter = 0;
   unsigned int start_off = *off;
@@ -281,8 +278,7 @@ unsigned char *serial_dump_stailq(struct ListHead *l, unsigned char *d,
  * @param off     Offset into the blob
  * @param convert If true, the strings will be converted from utf-8
  */
-void serial_restore_stailq(struct ListHead *l, const unsigned char *d,
-                                  int *off, bool convert)
+void serial_restore_stailq(struct ListHead *l, const unsigned char *d, int *off, bool convert)
 {
   unsigned int counter;
 
@@ -305,8 +301,7 @@ void serial_restore_stailq(struct ListHead *l, const unsigned char *d,
  * @param convert If true, the strings will be converted to utf-8
  * @retval ptr End of the newly packed binary
  */
-unsigned char *serial_dump_buffer(struct Buffer *b, unsigned char *d,
-                                         int *off, bool convert)
+unsigned char *serial_dump_buffer(struct Buffer *b, unsigned char *d, int *off, bool convert)
 {
   if (!b)
   {
@@ -331,8 +326,7 @@ unsigned char *serial_dump_buffer(struct Buffer *b, unsigned char *d,
  * @param off     Offset into the blob
  * @param convert If true, the strings will be converted from utf-8
  */
-void serial_restore_buffer(struct Buffer **b, const unsigned char *d,
-                                  int *off, bool convert)
+void serial_restore_buffer(struct Buffer **b, const unsigned char *d, int *off, bool convert)
 {
   unsigned int used;
   unsigned int offset;
@@ -361,8 +355,8 @@ void serial_restore_buffer(struct Buffer **b, const unsigned char *d,
  * @param convert If true, the strings will be converted to utf-8
  * @retval ptr End of the newly packed binary
  */
-unsigned char *serial_dump_parameter(struct ParameterList *p,
-                                            unsigned char *d, int *off, bool convert)
+unsigned char *serial_dump_parameter(struct ParameterList *p, unsigned char *d,
+                                     int *off, bool convert)
 {
   unsigned int counter = 0;
   unsigned int start_off = *off;
@@ -389,8 +383,8 @@ unsigned char *serial_dump_parameter(struct ParameterList *p,
  * @param off     Offset into the blob
  * @param convert If true, the strings will be converted from utf-8
  */
-void serial_restore_parameter(struct ParameterList *p,
-                                     const unsigned char *d, int *off, bool convert)
+void serial_restore_parameter(struct ParameterList *p, const unsigned char *d,
+                              int *off, bool convert)
 {
   unsigned int counter;
 
@@ -478,8 +472,7 @@ void serial_restore_body(struct Body *c, const unsigned char *d, int *off, bool
  * @param convert If true, the strings will be converted to utf-8
  * @retval ptr End of the newly packed binary
  */
-unsigned char *serial_dump_envelope(struct Envelope *e, unsigned char *d,
-                                           int *off, bool convert)
+unsigned char *serial_dump_envelope(struct Envelope *e, unsigned char *d, int *off, bool convert)
 {
   d = serial_dump_address(e->return_path, d, off, convert);
   d = serial_dump_address(e->from, d, off, convert);
@@ -525,8 +518,7 @@ unsigned char *serial_dump_envelope(struct Envelope *e, unsigned char *d,
  * @param off     Offset into the blob
  * @param convert If true, the strings will be converted from utf-8
  */
-void serial_restore_envelope(struct Envelope *e, const unsigned char *d,
-                                    int *off, bool convert)
+void serial_restore_envelope(struct Envelope *e, const unsigned char *d, int *off, bool convert)
 {
   int real_subj_off;
 
index ccb8e1d2db3dcdf93ef96c4f7f591266d0cc1733..0c83d51db4d89b1d9f57b61854f58ace8ffd8eb9 100644 (file)
@@ -59,4 +59,3 @@ void  mutt_hist_save_scratch(enum HistoryClass hclass, const char *str);
 int   mutt_hist_search(char *search_buf, enum HistoryClass hclass, char **matches);
 
 #endif /* _MUTT_HISTORY_H */
-
index 56cd841d7a6c1bb8591c92aa47020259b27c9c5b..d1e3eb7f939cec016fb4b8cd536f88b36bc47f67 100644 (file)
@@ -32,8 +32,8 @@
  */
 struct ListNode
 {
-    char *data;
-    STAILQ_ENTRY(ListNode) entries;
+  char *data;
+  STAILQ_ENTRY(ListNode) entries;
 };
 
 /**
index e244ece87c62f9ec67fb5572c722de44000de88f..50b601f7f71f7e56330f39014f08d0b4c9ecd924 100644 (file)
@@ -23,9 +23,9 @@
 #ifndef _MUTT_REGEX_H
 #define _MUTT_REGEX_H
 
+#include <stddef.h>
 #include <regex.h>
 #include <stdbool.h>
-#include <stddef.h>
 
 struct Buffer;
 
diff --git a/pager.c b/pager.c
index 567faa2492b644f19f14d51b59e6a6e631692de8..bc5b88bcf7e40bb00330ebad0d84a772b18fdf81 100644 (file)
--- a/pager.c
+++ b/pager.c
@@ -2999,7 +2999,8 @@ int mutt_pager(const char *banner, const char *fname, int flags, struct Pager *e
         if (IsMsgAttach(extra))
           mutt_attach_forward(extra->fp, extra->hdr, extra->actx, extra->bdy, SEND_NEWS);
         else
-          ci_send_message(SEND_NEWS | SEND_FORWARD, NULL, NULL, extra->ctx, extra->hdr);
+          ci_send_message(SEND_NEWS | SEND_FORWARD, NULL, NULL, extra->ctx,
+                          extra->hdr);
         pager_menu->redraw = REDRAW_FULL;
         break;
 
@@ -3027,7 +3028,8 @@ int mutt_pager(const char *banner, const char *fname, int flags, struct Pager *e
                               SEND_NEWS | SEND_REPLY);
           }
           else
-            ci_send_message(SEND_NEWS | SEND_REPLY, NULL, NULL, extra->ctx, extra->hdr);
+            ci_send_message(SEND_NEWS | SEND_REPLY, NULL, NULL, extra->ctx,
+                            extra->hdr);
           pager_menu->redraw = REDRAW_FULL;
           break;
         }
diff --git a/send.c b/send.c
index 06034261c2e2bfdd7f4120b114d3152e5072a322..c360aa29331d0def9172e9a82a7d535b350719ad 100644 (file)
--- a/send.c
+++ b/send.c
@@ -1684,8 +1684,8 @@ int ci_send_message(int flags, struct Header *msg, char *tempfile,
       goto cleanup;
     }
 
-    if (!SigOnTop && !(flags & (SEND_MAILX | SEND_KEY | SEND_BATCH)) && Editor &&
-        (mutt_str_strcmp(Editor, "builtin") != 0))
+    if (!SigOnTop && !(flags & (SEND_MAILX | SEND_KEY | SEND_BATCH)) &&
+        Editor && (mutt_str_strcmp(Editor, "builtin") != 0))
     {
       append_signature(tempfp);
     }