From: fennecdjay Date: Tue, 18 Jun 2019 22:22:50 +0000 (+0200) Subject: :art: Fix main X-Git-Tag: nightly~2439 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=0c2d1519b4d803387cf7c1b547fb68e1ffd2386e;p=gwion.git :art: Fix main --- diff --git a/src/main.c b/src/main.c index 7d7ede36..281e6a2a 100644 --- a/src/main.c +++ b/src/main.c @@ -7,14 +7,6 @@ #include "gwion.h" #include "arg.h" -#ifdef __linux__ -#include -#include -#endif - -//static jmp_buf jmp; -//static struct Gwion_ gwion; - static void sig(int unused NUSED) { #ifdef BUILD_ON_WINDOWS exit(EXIT_FAILURE); @@ -24,25 +16,14 @@ static void sig(int unused NUSED) { } int main(int argc, char** argv) { -// setlocale(LC_ALL, NULL); -//puts( -// bindtextdomain ("bison-runtime", "/usr/share/locale") -//); -// bindtextdomain ("bison-runtime", NULL); -//puts( - bindtextdomain ("gwion_ast", "ast/po"); - bindtextdomain ("gwion_util", "util/po"); - bindtextdomain ("gwion", "po"); -//); Arg arg = { .argc=argc, .argv=argv, .loop=-1 }; signal(SIGINT, sig); signal(SIGTERM, sig); struct Gwion_ gwion = { .plug=NULL }; const m_bool ini = gwion_ini(&gwion, &arg); arg_release(&arg); - if(/*setjmp(jmp) == 0 && */ini > 0) + if(ini > 0) gwion_run(&gwion); gwion_end(&gwion); THREAD_RETURN(EXIT_SUCCESS); - return EXIT_SUCCESS; }