diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-11-11 17:59:17 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-11-11 17:59:17 -0200 |
commit | ef900f224c4afdc33e31ca39e95ae8d1ac9dfd3b (patch) | |
tree | 591d997487ecaabb008f12c966acf29153d9c9c5 /liolib.c | |
parent | 3105febf9a6d79edfcd5cb50451cfa5a61016c76 (diff) | |
download | lua-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.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 | ||
105 | typedef struct LStream { | 105 | typedef 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)) |