[neomutt-devel] Code: libmutt

Richard Russon rich at flatcap.org
Thu Nov 16 19:13:47 CET 2017


Hi all,

Over the last few months we've been sorting out a lot of NeoMutt
functions.  We've moved all of the 'utility' functions, that don't
have any dependencies, and put them in 'libmutt'.

The functions are grouped by type:
    base64, buffer, date, debug, exit, file, hash, list,
    mapping, mbyte, md5, memory, message, sha1, string

After moving them, we've made sure they're all documented:

    https://www.neomutt.org/code/lib.html

The final step was to sort out the naming.  Every function is now of the
form: mutt_TYPE_DESC, where TYPE is from the list above.

As with all BIG changes, all the branches in the neomutt repo and all
the Pull Requests will be 'upgraded' for free :-)  I'll start tonight.

If you have some work that isn't public yet, you can rename the
functions using this sed script:

    https://gist.github.com/flatcap/57e25c6135a91d038554f4cce5c4fbdf

e.g.

    find . -type f -name '*.[ch]' | xargs sed -i -f rename-lib.sed

If you have any questions or problems, let me know.

Cheers,
    Rich / FlatCap
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mailman.neomutt.org/pipermail/neomutt-devel-neomutt.org/attachments/20171116/338b89b8/attachment.sig>


More information about the neomutt-devel mailing list