Improve love.filesystem.lines

This commit is contained in:
Bart van Strien
2012-01-14 18:18:18 +01:00
parent d525349549
commit e57e9efe0e
4 changed files with 126 additions and 112 deletions
+7 -11
View File
@@ -270,17 +270,6 @@ namespace physfs
**/
int enumerate(lua_State * L);
/**
* Returns an iterator which iterates over
* lines in files.
**/
int lines(lua_State * L);
/**
* The line iterator function.
**/
static int lines_i(lua_State * L);
/**
* Loads a file without running it. The loaded
* chunk is returned as a function.
@@ -291,6 +280,13 @@ namespace physfs
int getLastModified(lua_State * L);
/**
* Text file line-reading iterator function used and
* pushed on the Lua stack by love.filesystem.lines
* and File:lines.
**/
static int lines_i(lua_State * L);
}; // Filesystem
} // physfs