diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-10-22 21:02:47 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-10-22 21:02:47 -0700 |
commit | 05fa5124c24a00efb2dc0b760fbf3edc4f3f060a (patch) | |
tree | 377b57624bc0afbb6620452616bba597a79fe667 /src/luaconf.h | |
parent | 9792ac1e0979bee4ecccf2d65855a54ac372b57b (diff) | |
download | teliva-05fa5124c24a00efb2dc0b760fbf3edc4f3f060a.tar.gz |
drop lua_stdin_is_tty
luaconf.h now no longer refers to stdin/stdout/stderr.
Diffstat (limited to 'src/luaconf.h')
-rw-r--r-- | src/luaconf.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/luaconf.h b/src/luaconf.h index ebf6682..bebefc4 100644 --- a/src/luaconf.h +++ b/src/luaconf.h @@ -218,23 +218,6 @@ #if defined(lua_c) || defined(luaall_c) -/* -@@ lua_stdin_is_tty detects whether the standard input is a 'tty' (that -@* is, whether we're running lua interactively). -** CHANGE it if you have a better definition for non-POSIX/non-Windows -** systems. -*/ -#if defined(LUA_USE_ISATTY) -#include <unistd.h> -#define lua_stdin_is_tty() isatty(0) -#elif defined(LUA_WIN) -#include <io.h> -#include <stdio.h> -#define lua_stdin_is_tty() _isatty(_fileno(stdin)) -#else -#define lua_stdin_is_tty() 1 /* assume stdin is a tty */ -#endif - /* @@ LUA_PROMPT is the default prompt used by stand-alone Lua. |