From 594020a6ceea822b23bc6b1a5bd470e64f63efcb Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Fri, 19 Oct 2007 17:04:26 -0500 Subject: now that luasignal exists, we can get rid of this hack for endwin --- src/curses.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/curses.c b/src/curses.c index 1c2337e..bff2583 100644 --- a/src/curses.c +++ b/src/curses.c @@ -1,7 +1,6 @@ #include #include #include -#include #include #include @@ -56,13 +55,6 @@ static trans keys[] = { static int ncolors = 1, ncolor_pairs = 1; -/* necessary because atexit() expects a function that returns void, and gcc - * whines otherwise */ -static void _endwin(void) -{ - endwin(); -} - static void init_colors(lua_State* L) { int i; @@ -534,10 +526,6 @@ const luaL_Reg reg[] = { extern int luaopen_curses(lua_State* L) { - /* XXX: do we want to do this? how important is cleaning up? */ - signal(SIGTERM, exit); - atexit(_endwin); - lua_newtable(L); lua_setfield(L, LUA_REGISTRYINDEX, REG_TABLE); -- cgit v1.2.3-54-g00ecf