This repository has been archived by the owner on Nov 20, 2020. It is now read-only.
forked from lunarmodules/luafilesystem
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
* upstream/master: Fix warnings: unused variable Fix warning: C++ style comments are not allowed in ISO C90 Set global "lfs" when opening module Bump version to 1.6.2 and set version via define in src/lfs.c to make it better visible Full Lua 5.2 compatibility and adherance to modules-create-no-globals fix build for Lua 5.2; version 1.6.1 lfs.c: use Lua 5.2's own luaL_register luafilesystem 1.6.0 Due to Android (and apparently Sun) not supporting getcwd(NULL, 0), I've changed to call to getcwd to specify a buffer and explicit size which successfully works around the problem. One minor performance advantage is that one less malloc/free is needed since the buffer is now created on the stack. Apparently, this was already changed in a prior commit I didn't see initially, but I think the use of an invented/arbitrary PATH_MAX is incorrect. Platforms should generally provide a constant for this and PATH_MAX itself is already defined on some systems like Linux which can cause collisions. This commit improves on those changes by leveraging the constants provided by the compiler/system. implements fake luaL_register in Lua 5.2+
- Loading branch information
Showing
8 changed files
with
524 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package = "LuaFileSystem" | ||
|
||
version = "1.6.0-1" | ||
|
||
source = { | ||
url = "https://github.com/downloads/keplerproject/luafilesystem/luafilesystem-1.6.0.tar.gz", | ||
} | ||
|
||
description = { | ||
summary = "File System Library for the Lua Programming Language", | ||
detailed = [[ | ||
LuaFileSystem is a Lua library developed to complement the set of | ||
functions related to file systems offered by the standard Lua | ||
distribution. LuaFileSystem offers a portable way to access the | ||
underlying directory structure and file attributes. | ||
]] | ||
} | ||
|
||
dependencies = { | ||
"lua >= 5.1" | ||
} | ||
|
||
build = { | ||
type = "builtin", | ||
modules = { lfs = "src/lfs.c" }, | ||
copy_directories = { "doc", "tests" } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package = "LuaFileSystem" | ||
|
||
version = "1.6.1-1" | ||
|
||
source = { | ||
url = "https://github.com/downloads/keplerproject/luafilesystem/luafilesystem-1.6.1.tar.gz", | ||
} | ||
|
||
description = { | ||
summary = "File System Library for the Lua Programming Language", | ||
detailed = [[ | ||
LuaFileSystem is a Lua library developed to complement the set of | ||
functions related to file systems offered by the standard Lua | ||
distribution. LuaFileSystem offers a portable way to access the | ||
underlying directory structure and file attributes. | ||
]] | ||
} | ||
|
||
dependencies = { | ||
"lua >= 5.1" | ||
} | ||
|
||
build = { | ||
type = "builtin", | ||
modules = { lfs = "src/lfs.c" }, | ||
copy_directories = { "doc", "tests" } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package = "LuaFileSystem" | ||
|
||
version = "1.6.2-1" | ||
|
||
source = { | ||
url = "https://github.com/downloads/keplerproject/luafilesystem/luafilesystem-1.6.2.tar.gz", | ||
} | ||
|
||
description = { | ||
summary = "File System Library for the Lua Programming Language", | ||
detailed = [[ | ||
LuaFileSystem is a Lua library developed to complement the set of | ||
functions related to file systems offered by the standard Lua | ||
distribution. LuaFileSystem offers a portable way to access the | ||
underlying directory structure and file attributes. | ||
]] | ||
} | ||
|
||
dependencies = { | ||
"lua >= 5.1" | ||
} | ||
|
||
build = { | ||
type = "builtin", | ||
modules = { lfs = "src/lfs.c" }, | ||
copy_directories = { "doc", "tests" } | ||
} |
Oops, something went wrong.