turn charset into a lua package as well. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
more documentation. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Use m_functions(), you'll be fresh-faced. Signed-off-by: Julien Danjou <julien@danjou.info> Signed-off-by: Pierre Habouzit <madcoder@debian.org>
remove a whole lot of #include mutt.h Signed-off-by: Pierre Habouzit <pierre.habouzit@intersec.eu>
rationnalize includes a lot: that's very dirty, but lib-lib/lib-lib.h has a lot of commonly used includes. that saves a lot of things from the rest of the code. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
sort out some prototypes, put them where they belong. rework lib-lib, have a public lib-lib/lib-lib.h header that will be our main library we always want to have. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
make charset_canonicalize set the answer to "us-ascii" if s is NULL. some small improvements. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
oops :) Signed-off-by: Pierre Habouzit <madcoder@debian.org>
finish the "read" of charset.c Signed-off-by: Pierre Habouzit <madcoder@debian.org>
many simplifications, copyright statements. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
more charset improvements. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
oopsie, small fixes. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
use gperf for the charsets as well. we're more efficient *AND* more clever than the previous function. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
simplify charset and things in the sockets API. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
rework includes a bit Signed-off-by: Pierre Habouzit <madcoder@debian.org>
a whole lot of size_t -> ssize_t. remove old cruft too. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
not having wide chars is soooo 90, please, I *really* don't care with antiquated OSes, those can stick to plain mutt. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
drop str_adjust: we don't care about a few octets unused, please do me a favour. simplify decoding functions. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
[PATCH] Fix compilations warnings Signed-off-by: Julien Danjou <julien@danjou.info> Signed-off-by: Pierre Habouzit <madcoder@debian.org>
exit strfcpy, only use m_strcpy. add m_strisempty that checks !s || !*s Signed-off-by: Pierre Habouzit <madcoder@debian.org>