make Alias be a module as well. update luapkg2c to deal with "static" modules. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
push username, homedir and tmpdir in lua too. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
various cleanups. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
oops, d can be NULL ! Signed-off-by: Pierre Habouzit <madcoder@debian.org>
rework m_strformat so that it takes the cols number to use in case of right pad, rather than computing it. that makes the function suitable for lib-lib inclusion real soon :] Signed-off-by: Pierre Habouzit <madcoder@debian.org>
let m_strformat accept NULL formats. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
optimizations, remove horrors. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
the ‘kids don't do this at home’ commit. replace the unsigned long mutt API used to cast anything into ints pointer and so on. Add 'anytype' that is a kind of dirty union that, thanks to gcc __attribute__((transparent_union)) allows silent cast from any type into that type. eeeeeeek ! but that makes the code way easier to read ! Signed-off-by: Pierre Habouzit <madcoder@debian.org>
let the caller deal with M_FORMAT_ARROWCURSOR, not the callee. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
mutt_FormatString -> m_strformat (will soon end up into the str lib \o/) some tiny reworks, stylish issues. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
more documentation. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
more cosmetics. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
various code simplifications. Signed-off-by: Pierre Habouzit <madcoder@debian.org>
fclose -> m_fclose Signed-off-by: Pierre Habouzit <madcoder@debian.org>
hide one more function Signed-off-by: Pierre Habouzit <madcoder@madism.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>
some dead code, old things, fix idna *again* 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>
rework includes a bit Signed-off-by: Pierre Habouzit <madcoder@debian.org>