/* -*-c-*- -------------- gmixvm.c : * Main function of the mix gtk front-end * ------------------------------------------------------------------ * Last change: Time-stamp: "2001-04-28 22:37:45 jao" * ------------------------------------------------------------------ * Copyright (C) 2001 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 * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * */ #include #include "mixgtk.h" #ifdef MAKE_GUILE # include # include "mixgtk_cmd_dispatcher.h" static void inner_main_ (int argc, char *argv[]) { mixgtk_init (argc, argv); mixguile_set_cmd_dispatcher (mixgtk_cmd_dispatcher_get_mix_dispatcher ()); mixguile_load_bootstrap (); mixgtk_main (); mixgtk_release (); } #endif int main(int argc, char *argv[]) { #ifdef MAKE_GUILE mixguile_enter (argc, argv, inner_main_); #else if (!mixgtk_init (argc, argv)) return EXIT_FAILURE; mixgtk_main (); mixgtk_release (); #endif return EXIT_SUCCESS; }