diff --git a/csto.c b/csto.c index 40c03c1..f075f0e 100644 --- a/csto.c +++ b/csto.c @@ -2,12 +2,11 @@ * csto: The Callisto stand-alone interpreter */ -#include - #include #include #include #include +#include #include #include @@ -15,7 +14,6 @@ #include "callisto.h" - #if !defined(LUA_PROGNAME) #define LUA_PROGNAME "csto" #endif @@ -26,14 +24,11 @@ #define LUA_INITVARVERSION LUA_INIT_VAR LUA_VERSUFFIX - static lua_State *globalL = NULL; static const char *progname = LUA_PROGNAME; -#if defined(LUA_USE_POSIX) /* { */ - /* ** Use 'sigaction' when available. */ @@ -45,12 +40,6 @@ static void setsignal (int sig, void (*handler)(int)) { sigaction(sig, &sa, NULL); } -#else /* }{ */ - -#define setsignal signal - -#endif /* } */ - /* ** Hook set by signal function to stop the interpreter. @@ -384,25 +373,8 @@ static int handle_luainit (lua_State *L) { */ #if !defined(lua_stdin_is_tty) /* { */ -#if defined(LUA_USE_POSIX) /* { */ - -#include #define lua_stdin_is_tty() isatty(0) -#elif defined(LUA_USE_WINDOWS) /* }{ */ - -#include -#include - -#define lua_stdin_is_tty() _isatty(_fileno(stdin)) - -#else /* }{ */ - -/* ISO C definition */ -#define lua_stdin_is_tty() 1 /* assume stdin is a tty */ - -#endif /* } */ - #endif /* } */