X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=alias.cpkg;h=b6b1dbe809f08beab2935355773370403ff7bbe4;hp=6e33e2949f5cc0053b46d00e6804d36a01d20a28;hb=2dc50decd320b310ef56c14041b6fa4fefd865ac;hpb=597020b9829312a50c15784916f473da9e75efd0 diff --git a/alias.cpkg b/alias.cpkg index 6e33e29..b6b1dbe 100644 --- a/alias.cpkg +++ b/alias.cpkg @@ -36,36 +36,12 @@ #include "alias.h" #include "mutt_idna.h" #include "sort.h" +@import "lib-lua/base.cpkg" -@type bool = { - .kind = 'b'; - .ctype = unsigned : 1; -}; - -@type string_t = { - .kind = 's'; - .ctype = char *; - .dtor = p_delete($$); - .ctor = m_strdup($$); -}; - -@type path_t = { - .kind = 's'; - .ctype = char *; - .dtor = p_delete($$); - .ctor = luaM_pathnew($$); -}; - -@type quadopt_t = { - .kind = 'i'; - .check = luaM_checkquadopt($L, $$); - .ctype = unsigned : 2; -}; - -static @package MAlias { +@static_package MAlias { string_t alias_format = m_strdup("%4n %2f %t %-10a %r"); path_t alias_file = m_strdup("~/.madmutt/aliases"); -} MAlias; +}; alias_t *Aliases;