From 5f1fb7e7684310ebfe27467a15af132c709eaeb4 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 13 Aug 2016 00:11:31 +0200 Subject: Move config object to config.c --- config.c | 4 ++++ main-sdl.c | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config.c b/config.c index 3aeee4f..47506d5 100644 --- a/config.c +++ b/config.c @@ -92,6 +92,10 @@ static keyword keywords[] = { }; static int g_current_string; +StringConfig + g_string_conf[MAX_LINECOUNT]; +int g_string_count; + static int config_findkeyword(char **line) diff --git a/main-sdl.c b/main-sdl.c index bb31720..ac44526 100644 --- a/main-sdl.c +++ b/main-sdl.c @@ -24,9 +24,6 @@ // const int g_width = 1024, g_height = 768; const int g_width = 800, g_height = 600; -StringConfig -g_string_conf[MAX_LINECOUNT]; -int g_string_count; int g_harfe_connected = 0; int g_harfe_fd = -1; -- cgit v1.2.3