]> granicus.if.org Git - mutt/commit
Clean up code indentation.
authorKevin McCarthy <kevin@8t8.us>
Fri, 4 Jan 2019 03:58:18 +0000 (19:58 -0800)
committerKevin McCarthy <kevin@8t8.us>
Fri, 4 Jan 2019 21:59:27 +0000 (13:59 -0800)
commit248c2ee8ed7c0ff333ae076041107210c5acd641
treef51f10f1f486e08c76e187c095e536620bebbbd0
parent085a6f74b3b7cebabb75f4c99ea9d59649c7b03a
Clean up code indentation.

These are mostly automated changes corresponding to the emacs
settings:
  (c-set-style "linux")
  (setq c-basic-offset 2)
  (c-set-offset 'case-label '+)

Most of the code follows the convention:
  (add-to-list 'c-cleanup-list 'space-before-funcall)
but this is not enforced by this indentation cleanup.

Also, I personally dislike tabs, so I have:
  (setq-default indent-tabs-mode nil)
in my own configuration.  However I have no desire to change every line
just for that effect.  So this cleanup does nothing about the mix issue.

Some of the secondary files (e.g. regex.c) have been skipped.

I've also skipped crypt-gpgme.c, because I need to think about that
file.  Werner Koch and the GnuPG team contributed most it, and it
follows the Gnu indentation settings.  It should probably be made
uniform with Mutt, but I don't want to discourage future GnuPG
contribution to the file.

I manually reverted a few unsightly cleanups, and added a few tweeks
when I saw things that could be improved.
107 files changed:
account.c
addrbook.c
alias.c
attach.c
bcache.c
browser.c
buffer.c
buffy.c
color.c
commands.c
complete.c
compose.c
compress.c
copy.c
crypt-mod-pgp-classic.c
crypt-mod-pgp-gpgme.c
crypt-mod-smime-classic.c
crypt-mod-smime-gpgme.c
crypt.c
cryptglue.c
curs_lib.c
curs_main.c
date.c
doc/makedoc.c
dotlock.c
edit.c
editmsg.c
enter.c
gnupgparse.c
handler.c
hash.c
hash.h
hcache.c
hcache.h
hdrline.c
headers.c
help.c
hook.c
imap/auth_anon.c
imap/auth_cram.c
imap/auth_gss.c
imap/auth_login.c
imap/auth_sasl.c
imap/browse.c
imap/command.c
imap/imap.c
imap/imap_private.h
imap/message.c
imap/utf7.c
imap/util.c
init.c
init.h
keymap.c
lib.c
main.c
mbox.c
mbyte.c
menu.c
mh.c
mime.h
mkdtemp.c
mutt.h
mutt_crypt.h
mutt_idna.c
mutt_sasl.c
mutt_socket.c
mutt_ssl.c
mutt_ssl_gnutls.c
muttlib.c
mx.c
pager.c
parse.c
pattern.c
pgp.c
pgp.h
pgpewrap.c
pgpinvoke.c
pgpkey.c
pgplib.c
pgpmicalg.c
pgppacket.c
pgppubring.c
pop.c
pop_auth.c
pop_lib.c
postpone.c
protos.h
query.c
recvattach.c
recvcmd.c
remailer.c
rfc1524.c
rfc2047.c
rfc2047.h
rfc2231.c
rfc822.c
send.c
sendlib.c
setenv.c
sidebar.c
smime.c
smtp.c
sort.c
status.c
thread.c
txt2c.c
utf8.c