From 0c2d1519b4d803387cf7c1b547fb68e1ffd2386e Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 19 Jun 2019 00:22:50 +0200 Subject: [PATCH] :art: Fix main --- src/main.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) 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; } -- 2.43.0