|
| #define | liolib_c |
| |
| #define | LUA_LIB |
| |
| #define | L_MODEEXT "b" |
| |
| #define | l_popen(L, c, m) |
| |
| #define | l_pclose(L, file) ((void)L, (void)file, -1) |
| |
| #define | l_checkmodep(m) ((m[0] == 'r' || m[0] == 'w') && m[1] == '\0') |
| |
| #define | l_getc(f) getc(f) |
| |
| #define | l_lockfile(f) ((void)0) |
| |
| #define | l_unlockfile(f) ((void)0) |
| |
| #define | l_fseek(f, o, w) fseek(f,o,w) |
| |
| #define | l_ftell(f) ftell(f) |
| |
| #define | l_seeknum long |
| |
| #define | IO_PREFIX "_IO_" |
| |
| #define | IOPREF_LEN (sizeof(IO_PREFIX)/sizeof(char) - 1) |
| |
| #define | IO_INPUT (IO_PREFIX "input") |
| |
| #define | IO_OUTPUT (IO_PREFIX "output") |
| |
| #define | tolstream(L) ((LStream *)luaL_checkudata(L, 1, LUA_FILEHANDLE)) |
| |
| #define | isclosed(p) ((p)->closef == NULL) |
| |
| #define | MAXARGLINE 250 |
| |
| #define | L_MAXLENNUM 200 |
| |
|
| static int | l_checkmode (const char *mode) |
| |
| static int | io_type (lua_State *L) |
| |
| static int | f_tostring (lua_State *L) |
| |
| static FILE * | tofile (lua_State *L) |
| |
| static LStream * | newprefile (lua_State *L) |
| |
| static int | aux_close (lua_State *L) |
| |
| static int | f_close (lua_State *L) |
| |
| static int | io_close (lua_State *L) |
| |
| static int | f_gc (lua_State *L) |
| |
| static int | io_fclose (lua_State *L) |
| |
| static LStream * | newfile (lua_State *L) |
| |
| static void | opencheck (lua_State *L, const char *fname, const char *mode) |
| |
| static int | io_open (lua_State *L) |
| |
| static int | io_pclose (lua_State *L) |
| |
| static int | io_popen (lua_State *L) |
| |
| static int | io_tmpfile (lua_State *L) |
| |
| static FILE * | getiofile (lua_State *L, const char *findex) |
| |
| static int | g_iofile (lua_State *L, const char *f, const char *mode) |
| |
| static int | io_input (lua_State *L) |
| |
| static int | io_output (lua_State *L) |
| |
| static int | io_readline (lua_State *L) |
| |
| static void | aux_lines (lua_State *L, int toclose) |
| |
| static int | f_lines (lua_State *L) |
| |
| static int | io_lines (lua_State *L) |
| |
| static int | nextc (RN *rn) |
| |
| static int | test2 (RN *rn, const char *set) |
| |
| static int | readdigits (RN *rn, int hex) |
| |
| static int | read_number (lua_State *L, FILE *f) |
| |
| static int | test_eof (lua_State *L, FILE *f) |
| |
| static int | read_line (lua_State *L, FILE *f, int chop) |
| |
| static void | read_all (lua_State *L, FILE *f) |
| |
| static int | read_chars (lua_State *L, FILE *f, size_t n) |
| |
| static int | g_read (lua_State *L, FILE *f, int first) |
| |
| static int | io_read (lua_State *L) |
| |
| static int | f_read (lua_State *L) |
| |
| static int | g_write (lua_State *L, FILE *f, int arg) |
| |
| static int | io_write (lua_State *L) |
| |
| static int | f_write (lua_State *L) |
| |
| static int | f_seek (lua_State *L) |
| |
| static int | f_setvbuf (lua_State *L) |
| |
| static int | io_flush (lua_State *L) |
| |
| static int | f_flush (lua_State *L) |
| |
| static void | createmeta (lua_State *L) |
| |
| static int | io_noclose (lua_State *L) |
| |
| static void | createstdfile (lua_State *L, FILE *f, const char *k, const char *fname) |
| |
| LUAMOD_API int | luaopen_io (lua_State *L) |
| |