From ef900f224c4afdc33e31ca39e95ae8d1ac9dfd3b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 11 Nov 2011 17:59:17 -0200 Subject: strutcture for file handles exported in 'lauxlib.h' --- liolib.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index f40094f4..b5b90309 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 2.104 2011/09/13 21:09:04 roberto Exp roberto $ +** $Id: liolib.c,v 2.105 2011/11/09 14:10:43 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -102,11 +102,7 @@ #define IO_OUTPUT (IO_PREFIX "output") -typedef struct LStream { - FILE *f; /* stream */ - lua_CFunction closef; /* to close stream (NULL for closed streams) */ -} LStream; - +typedef luaIO_Stream LStream; #define tolstream(L) ((LStream *)luaL_checkudata(L, 1, LUA_FILEHANDLE)) -- cgit v1.2.3-55-g6feb