#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;