X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-lua%2Fmadmutt.cpkg;h=9d1ffd7f4299372949a468d96909918b6d955e31;hp=f11fc65237f218df5eed0c0babc29b7da72e41f9;hb=cc707c1e986b60f2c1c1932d0789038d465a7a59;hpb=b1c9f537b475b3bc8f6517bb4d7008a411bb478e diff --git a/lib-lua/madmutt.cpkg b/lib-lua/madmutt.cpkg index f11fc65..9d1ffd7 100644 --- a/lib-lua/madmutt.cpkg +++ b/lib-lua/madmutt.cpkg @@ -45,6 +45,11 @@ static const char *luaM_path_post(const char *val) return path; } +@type bool = { + .kind = 'b'; + .ctype = unsigned : 1; +}; + @type string_t = { .kind = 's'; .ctype = const char *; @@ -59,22 +64,36 @@ static const char *luaM_path_post(const char *val) @type quadopt_t = { .kind = 'i'; .check = luaM_checkquadopt($L, $$); - .ctype = quadopt_t; + .ctype = unsigned : 2; }; +#if defined(HAVE_QDBM) +# define HCACHE_BACKEND "qdbm" +#elif defined(HAVE_GDBM) +# define HCACHE_BACKEND "gdbm" +#elif defined(HAVE_DB4) +# define HCACHE_BACKEND "db4" +#else +# define HCACHE_BACKEND "unknown" +#endif + @package madmutt { const string_t version = VERSION; const string_t sysconfdir = SYSCONFDIR; const string_t bindir = BINDIR; const string_t docdir = PKGDOCDIR; + const string_t hcache_backend = HCACHE_BACKEND; path_t dotlock = BINDIR "/mutt_dotlock"; path_t editor = getenv("VISUAL") ?: getenv("EDITOR") ?: "vi"; path_t sendmail = SENDMAIL " -eom -oi"; path_t shell = madmutt_init_shell(); - quadopt_t quit = M_YES; + quadopt_t quit = M_YES; + bool beep = 1; + bool beep_new = 0; const string_t pwd(void) = madmutt_pwd(); } ml_core; +/* vim:set ft=c: */