mirror of https://github.com/rusefi/lua.git
some compilers do not accept "stdin"/"stdout" as constants.
This commit is contained in:
parent
8c37d3b9d6
commit
37bf74efb7
5
iolib.c
5
iolib.c
|
@ -3,7 +3,7 @@
|
||||||
** Input/output library to LUA
|
** Input/output library to LUA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char *rcs_iolib="$Id: iolib.c,v 1.46 1996/05/27 14:06:58 roberto Exp roberto $";
|
char *rcs_iolib="$Id: iolib.c,v 1.47 1996/08/01 14:55:33 roberto Exp roberto $";
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -16,7 +16,7 @@ char *rcs_iolib="$Id: iolib.c,v 1.46 1996/05/27 14:06:58 roberto Exp roberto $";
|
||||||
#include "luadebug.h"
|
#include "luadebug.h"
|
||||||
#include "lualib.h"
|
#include "lualib.h"
|
||||||
|
|
||||||
static FILE *in=stdin, *out=stdout;
|
static FILE *in, *out;
|
||||||
|
|
||||||
|
|
||||||
#ifdef POPEN
|
#ifdef POPEN
|
||||||
|
@ -598,6 +598,7 @@ static struct lua_reg iolib[] = {
|
||||||
|
|
||||||
void iolib_open (void)
|
void iolib_open (void)
|
||||||
{
|
{
|
||||||
|
in=stdin; out=stdout;
|
||||||
luaI_openlib(iolib, (sizeof(iolib)/sizeof(iolib[0])));
|
luaI_openlib(iolib, (sizeof(iolib)/sizeof(iolib[0])));
|
||||||
lua_setfallback("error", errorfb);
|
lua_setfallback("error", errorfb);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue