projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix esmtp.
[apps/madmutt.git]
/
lib-lua
/
base.cpkg
diff --git
a/lib-lua/base.cpkg
b/lib-lua/base.cpkg
index
221e2a0
..
e7b91e4
100644
(file)
--- a/
lib-lua/base.cpkg
+++ b/
lib-lua/base.cpkg
@@
-4,6
+4,12
@@
.push = lua_pushboolean($L, $$);
};
.push = lua_pushboolean($L, $$);
};
+@type int {
+ .ctype = int;
+ .check = luaL_checkinteger($L, $$);
+ .push = lua_pushinteger($L, $$);
+};
+
@type quadopt_t {
.ctype = unsigned : 2;
.check = luaM_checkquadopt($L, $$);
@type quadopt_t {
.ctype = unsigned : 2;
.check = luaM_checkquadopt($L, $$);
@@
-30,4
+36,12
@@
.dtor = rx_delete($$);
};
.dtor = rx_delete($$);
};
+@type address_t {
+ .ctype = address_t *;
+ .check = luaL_checkstring($L, $$);
+ .push = luaM_pushaddr($L, $$);
+ .ctor = rfc822_parse_adrlist(NULL, $$);
+ .dtor = address_list_wipe($$);
+};
+
/* vim:set ft=c: */
/* vim:set ft=c: */