diff options
author | jluehrs2 <jluehrs2@uiuc.edu> | 2007-10-19 17:04:26 -0500 |
---|---|---|
committer | jluehrs2 <jluehrs2@uiuc.edu> | 2007-10-19 17:04:26 -0500 |
commit | 594020a6ceea822b23bc6b1a5bd470e64f63efcb (patch) | |
tree | eb0e1e1d6c22e893cc3edda82425818f1c81afa8 | |
parent | e95addd3f213ebeaffff4ba2260a9974696133d8 (diff) | |
download | luancurses-594020a6ceea822b23bc6b1a5bd470e64f63efcb.tar.gz luancurses-594020a6ceea822b23bc6b1a5bd470e64f63efcb.zip |
now that luasignal exists, we can get rid of this hack for endwin
-rw-r--r-- | src/curses.c | 12 |
1 files changed, 0 insertions, 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 <curses.h> #include <lua.h> #include <lauxlib.h> -#include <signal.h> #include <stdlib.h> #include <string.h> @@ -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); |