From a7f3726a0a7f16bccb664871fe35e8d2f2572f00 Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Mon, 3 Nov 2008 07:00:17 +0000 Subject: Do a bit of cleanup I never got around to do, before moving from my repo to sf.net --- misc/src/common/core.c | 152 ------------------------------------------------- 1 file changed, 152 deletions(-) delete mode 100644 misc/src/common/core.c (limited to 'misc/src/common/core.c') diff --git a/misc/src/common/core.c b/misc/src/common/core.c deleted file mode 100644 index 62af254..0000000 --- a/misc/src/common/core.c +++ /dev/null @@ -1,152 +0,0 @@ -// $Id: core.c,v 1.1.1.1 2004/09/10 17:44:49 MagicalTux Exp $ -// original : core.c 2003/02/26 18:03:12 Rev 1.7 - -#include -#include -#ifndef LCCWIN32 -#include -#endif -#include - -#include "core.h" -#include "socket.h" -#include "timer.h" -#include "version.h" - -#ifdef MEMWATCH -#include "memwatch.h" -#endif - -static void (*term_func)(void)=NULL; - -/*====================================== - * CORE : Set function - *-------------------------------------- - */ -void set_termfunc(void (*termfunc)(void)) -{ - term_func = termfunc; -} - -/*====================================== - * CORE : Signal Sub Function - *-------------------------------------- - */ - -static void sig_proc(int sn) -{ - int i; - switch(sn){ - case SIGINT: - case SIGTERM: - if(term_func) - term_func(); - for(i=0;i