};
@type path_t = {
- .push = luaM_path_post($$);
.kind = 's';
.ctype = char *;
.dtor = p_delete($$);
- .ctor = m_strdup($$);
+ .ctor = luaM_pathnew($$);
};
@type quadopt_t = {
};
static @package MAlias {
- path_t alias_format = m_strdup("%4n %2f %t %-10a %r");
+ string_t alias_format = m_strdup("%4n %2f %t %-10a %r");
+ path_t alias_file = m_strdup("~/.madmutt/aliases");
} MAlias;
-char *AliasFile;
alias_t *Aliases;
-rx_t GecosMask;
#define RSORT(x) (SortAlias & SORT_REVERSE) ? -x : x
alias_list_push(&Aliases, new);
- m_strcpy(buf, sizeof(buf), NONULL(AliasFile));
+ m_strcpy(buf, sizeof(buf), NONULL(MAlias.alias_file));
if (mutt_get_field(_("Save to file: "), buf, sizeof(buf), M_FILE)) {
return;
}
if (pw) {
char namebuf[STRING];
- mutt_gecos_name(namebuf, sizeof(namebuf), pw, GecosMask.rx);
+ mutt_gecos_name(namebuf, sizeof(namebuf), pw, MCore.gecos_mask.rx);
m_strreplace(&pop->personal, namebuf);
}
}