drop lua_stdin_is_tty
luaconf.h now no longer refers to stdin/stdout/stderr.
This commit is contained in:
parent
9792ac1e09
commit
05fa5124c2
|
@ -218,23 +218,6 @@
|
||||||
|
|
||||||
#if defined(lua_c) || defined(luaall_c)
|
#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.
|
@@ LUA_PROMPT is the default prompt used by stand-alone Lua.
|
||||||
|
|
Loading…
Reference in New Issue