1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-26 07:29:17 +02:00

* lib: fix mu-script for !BUILD_GUILE

This commit is contained in:
djcb 2012-10-24 15:48:07 +03:00
parent 11ecc65109
commit b2b18aee75

View File

@ -246,14 +246,12 @@ mu_script_find_script_with_name (GSList *lst, const char *name)
} }
#ifdef BUILD_GUILE #ifdef BUILD_GUILE
static void static void
guile_shell (void *closure, int argc, char **argv) guile_shell (void *closure, int argc, char **argv)
{ {
scm_shell (argc, argv); scm_shell (argc, argv);
} }
gboolean gboolean
mu_script_guile_run (MuScriptInfo *msi, const char *muhome, mu_script_guile_run (MuScriptInfo *msi, const char *muhome,
const char **args, GError **err) const char **args, GError **err)
@ -289,11 +287,10 @@ mu_script_guile_run (MuScriptInfo *msi, const char *muhome,
g_free (expr); g_free (expr);
return TRUE; return TRUE;
} }
#else /*!BUILD_GUILE*/
#else
gboolean gboolean
mu_script_guile_run (MuScriptInfo *msi, const char *muhome, mu_script_guile_run (MuScriptInfo *msi, const char *muhome,
const char *query, gboolean textonly, GError **err) const char **args, GError **err)
{ {
mu_util_g_set_error (err, MU_ERROR_INTERNAL, mu_util_g_set_error (err, MU_ERROR_INTERNAL,
"this mu does not have guile support"); "this mu does not have guile support");