use buffers instead of realloc-ed string. makes code shorter. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Make buffy a lua package as well. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
create the lib-mx now Signed-off-by: Pierre Habouzit <madcoder@madism.org>
Remove useless imap_cmd_running() Signed-off-by: Julien Danjou <julien@danjou.info> Signed-off-by: Pierre Habouzit <madcoder@debian.org>
more simplifications. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
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>
simplify charset and things in the sockets API. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
remove most of the debug code: often makes the code unreadable, for little gain when we debug, because the debugging is due to the high level of code interweaving Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Fix a bunch of warnings in imap code Signed-off-by: Julien Danjou <julien@danjou.info> Signed-off-by: Pierre Habouzit <madcoder@debian.org>
move debug.c Signed-off-by: Pierre Habouzit <madcoder@debian.org>
replace SKIPWS with a proper inline func with the right API. 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>
drop str_[n]cat. write mutt_get_localpart more efficiently avoiding the use of a local buffer. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
exit str_cmp enters m_strcmp Signed-off-by: Pierre Habouzit <madcoder@debian.org>
use safer p_clear when possible.
move ascii.* into the lib-lib. inline some functions.
use m_strdup and m_strlen that are inlined for efficiency
move intl.h into lib-lib/macros.h Signed-off-by: Pierre Habouzit <madcoder@debian.org>
exit mem_realloc, enters p_realloc/xrealloc. Signed-off-by: Pierre Habouzit <madcoder@debian.org>