]> granicus.if.org Git - neomutt/commit
unify new/free() functions 2
authorRichard Russon <rich@flatcap.org>
Sat, 31 Aug 2019 13:45:55 +0000 (14:45 +0100)
committerRichard Russon <rich@flatcap.org>
Sun, 1 Sep 2019 16:37:02 +0000 (17:37 +0100)
commit396c9ab47d61d7642a7d62e60130b37575076981
tree1b95adf742d7afa18cc6e46f1783d15defc630bb
parentb48ed482a9252c9227ae318ff1364b74612e6666
unify new/free() functions 2

'Free' functions:
- Name ends in `_free()`
- Take a `**ptr`
- Creates a native pointer
- Sets pointer to `NULL`

Functions changed:
- color_line_free()
- mutt_actx_free()
- mutt_attachmatch_free()
- mutt_autocrypthdr_free()
- mutt_autocrypt_db_account_free()
- mutt_autocrypt_db_gossip_history_free()
- mutt_autocrypt_db_peer_free()
- mutt_autocrypt_db_peer_history_free()

'New' functions:
- Name ends in `_new()`
- Must be a 'new' function if there's a 'free' function

Functions changed:
- class_color_new()
- color_line_new()
- hash_new()
- mutt_actx_new()
- mutt_attachmatch_new()
- mutt_autocrypthdr_new()
- parameter_new()
- pgp_keyinfo_new()
17 files changed:
autocrypt/autocrypt.c
autocrypt/autocrypt_db.c
autocrypt/autocrypt_private.h
color.c
compose.c
email/attach.c
email/attach.h
email/envelope.c
email/envelope.h
email/parse.c
email/rfc2231.c
init.c
mutt/hash.c
ncrypt/pgplib.c
ncrypt/pgplib.h
pager.c
recvattach.c