diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-10-11 19:54:34 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-10-11 19:54:34 +0200 |
commit | 8c5835b547d8fe41d605db92b22644d4be7900a1 (patch) | |
tree | eac472cc9b7b62c2abf8967a5f1e260ca7cfb5d3 | |
parent | 7339a3db78c306ca7be0de9575b6cd86ff0d9979 (diff) | |
download | mdk-8c5835b547d8fe41d605db92b22644d4be7900a1.tar.gz mdk-8c5835b547d8fe41d605db92b22644d4be7900a1.tar.bz2 |
Fixes for signature of guile initialization functions.
* mixgtk/gmixvm.c: inner_main_ signature corrected
* mixutils/mixvm_loop.c: loop_ signature corrected
* mixguile/mixguile.h: Cosmetics
-rw-r--r-- | mixgtk/gmixvm.c | 4 | ||||
-rw-r--r-- | mixguile/mixguile.h | 7 | ||||
-rw-r--r-- | mixutils/mixvm_loop.c | 4 |
3 files changed, 9 insertions, 6 deletions
diff --git a/mixgtk/gmixvm.c b/mixgtk/gmixvm.c index baa87ec..60892b5 100644 --- a/mixgtk/gmixvm.c +++ b/mixgtk/gmixvm.c @@ -1,7 +1,7 @@ /* -*-c-*- -------------- gmixvm.c : * Main function of the mix gtk front-end * ------------------------------------------------------------------ - * Copyright (C) 2001, 2002, 2006, 2007 Free Software Foundation, Inc. + * Copyright (C) 2001, 2002, 2006, 2007, 2009 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -29,7 +29,7 @@ static gboolean initfile_ = TRUE; # include <mixguile/mixguile.h> # include "mixgtk_cmd_dispatcher.h" static void -inner_main_ (int argc, char *argv[]) +inner_main_ (void *closure, int argc, char *argv[]) { mixgtk_init (argc, argv); mixguile_set_cmd_dispatcher (mixgtk_cmd_dispatcher_get_mix_dispatcher ()); diff --git a/mixguile/mixguile.h b/mixguile/mixguile.h index dfa8219..d122d44 100644 --- a/mixguile/mixguile.h +++ b/mixguile/mixguile.h @@ -44,7 +44,10 @@ mixguile_load_bootstrap (gboolean localinit); main function. */ extern void -mixguile_init (int argc, char *argv[], gboolean initfile, main_func_t main_fun, +mixguile_init (int argc, + char *argv[], + gboolean initfile, + main_func_t main_fun, mix_vm_cmd_dispatcher_t *dis); /* set the command dispatcher */ @@ -53,7 +56,7 @@ mixguile_set_cmd_dispatcher (mix_vm_cmd_dispatcher_t *dis); /* enter the guile repl */ extern void -mixguile_enter_repl (void *closure,int argc, char *argv[]); +mixguile_enter_repl (void *closure, int argc, char *argv[]); /* access the comand dispatcher */ extern mix_vm_cmd_dispatcher_t * diff --git a/mixutils/mixvm_loop.c b/mixutils/mixvm_loop.c index ad486f0..b19022a 100644 --- a/mixutils/mixvm_loop.c +++ b/mixutils/mixvm_loop.c @@ -1,7 +1,7 @@ /* -*-c-*- -------------- mixvm_loop.c : * Implementation of mix vm command loop. * ------------------------------------------------------------------ - * Copyright (C) 2000, 2001, 2002, 2004, 2006, 2007 Free Software Foundation, Inc. + * Copyright (C) 2000, 2001, 2002, 2004, 2006, 2007, 2009 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -118,7 +118,7 @@ mix_vmloop_set_prompt (const gchar *prompt) } static void -loop_ (int argc, char *argv[]) +loop_ (void *closure, int argc, char *argv[]) { while ( mixvm_cmd_exec (rl_gets ()) ) ; |