]> granicus.if.org Git - neomutt/commit
split up 'if' statements that assign and test
authorRichard Russon <rich@flatcap.org>
Sat, 7 Oct 2017 10:24:25 +0000 (11:24 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 14 Oct 2017 14:32:46 +0000 (15:32 +0100)
commitde58c1489043e41a1ae4d561c072f79b90093502
tree6c997335e4e42c173837d62f689198e48d3fa83c
parentced8bf17f23677c3909e57bc5c8d75abe3e069ac
split up 'if' statements that assign and test

Split 'if' statements that combine an assignment with a test.
e.g. from:

    if ((pc = imap_get_flags(&(idata->flags), pc)) == NULL)

To
    pc = imap_get_flags(&(idata->flags), pc);
    if (!pc)

This makes the statements a little easier to read and debug.
65 files changed:
alias.c
attach.c
browser.c
buffy.c
charset.c
color.c
commands.c
complete.c
compose.c
compress.c
copy.c
curs_lib.c
curs_main.c
doc/makedoc.c
edit.c
editmsg.c
filter.c
flags.c
handler.c
headers.c
help.c
history.c
imap/auth_cram.c
imap/imap.c
imap/message.c
init.c
keymap.c
lib/date.c
lib/file.c
main.c
mbox.c
menu.c
mh.c
mutt_socket.c
mutt_ssl.c
mutt_tunnel.c
muttlib.c
mx.c
ncrypt/crypt.c
ncrypt/crypt_gpgme.c
ncrypt/gnupgparse.c
ncrypt/pgp.c
ncrypt/pgpkey.c
ncrypt/pgpmicalg.c
ncrypt/smime.c
pager.c
parse.c
pattern.c
pgppubring.c
pop.c
postpone.c
recvattach.c
recvcmd.c
remailer.c
resize.c
rfc1524.c
rfc2047.c
rfc3676.c
rfc822.c
score.c
send.c
sendlib.c
system.c
thread.c
url.c