update source to use our brand new source generator. Update automakes.
[apps/madmutt.git] / alias.cpkg
index 6e33e29..b6b1dbe 100644 (file)
 #include "alias.h"
 #include "mutt_idna.h"
 #include "sort.h"
 #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");
     string_t alias_format = m_strdup("%4n %2f %t %-10a   %r");
     path_t   alias_file   = m_strdup("~/.madmutt/aliases");
-} MAlias;
+};
 
 alias_t *Aliases;
 
 
 alias_t *Aliases;