summaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-11-11 17:59:17 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-11-11 17:59:17 -0200
commitef900f224c4afdc33e31ca39e95ae8d1ac9dfd3b (patch)
tree591d997487ecaabb008f12c966acf29153d9c9c5 /liolib.c
parent3105febf9a6d79edfcd5cb50451cfa5a61016c76 (diff)
downloadlua-ef900f224c4afdc33e31ca39e95ae8d1ac9dfd3b.tar.gz
lua-ef900f224c4afdc33e31ca39e95ae8d1ac9dfd3b.tar.bz2
lua-ef900f224c4afdc33e31ca39e95ae8d1ac9dfd3b.zip
strutcture for file handles exported in 'lauxlib.h'
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/liolib.c b/liolib.c
index f40094f4..b5b90309 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.104 2011/09/13 21:09:04 roberto Exp roberto $ 2** $Id: liolib.c,v 2.105 2011/11/09 14:10:43 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -102,11 +102,7 @@
102#define IO_OUTPUT (IO_PREFIX "output") 102#define IO_OUTPUT (IO_PREFIX "output")
103 103
104 104
105typedef struct LStream { 105typedef luaIO_Stream LStream;
106 FILE *f; /* stream */
107 lua_CFunction closef; /* to close stream (NULL for closed streams) */
108} LStream;
109
110 106
111 107
112#define tolstream(L) ((LStream *)luaL_checkudata(L, 1, LUA_FILEHANDLE)) 108#define tolstream(L) ((LStream *)luaL_checkudata(L, 1, LUA_FILEHANDLE))