diff options
author | Thijs <thijs@thijsschreijer.nl> | 2024-06-25 08:57:18 +0200 |
---|---|---|
committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2024-06-25 09:07:00 +0200 |
commit | c832d2b857d4174d17247de837426d4cfc95ec2f (patch) | |
tree | c75db4014bb5c3e5e9397537f5b93b4e47b0db22 | |
parent | 44974afc2f341b5d16408dec2e381616d388f9c8 (diff) | |
download | luasystem-c832d2b857d4174d17247de837426d4cfc95ec2f.zip |
Release v0.4.1v0.4.1
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | docs/classes/bitflags.html | 2 | ||||
-rw-r--r-- | docs/examples/compat.lua.html | 2 | ||||
-rw-r--r-- | docs/examples/flag_debugging.lua.html | 2 | ||||
-rw-r--r-- | docs/examples/password_input.lua.html | 2 | ||||
-rw-r--r-- | docs/examples/read.lua.html | 2 | ||||
-rw-r--r-- | docs/examples/readline.lua.html | 2 | ||||
-rw-r--r-- | docs/examples/spinner.lua.html | 2 | ||||
-rw-r--r-- | docs/examples/spiral_snake.lua.html | 2 | ||||
-rw-r--r-- | docs/examples/terminalsize.lua.html | 2 | ||||
-rw-r--r-- | docs/index.html | 2 | ||||
-rw-r--r-- | docs/modules/system.html | 2 | ||||
-rw-r--r-- | docs/topics/01-introduction.md.html | 2 | ||||
-rw-r--r-- | docs/topics/02-development.md.html | 2 | ||||
-rw-r--r-- | docs/topics/03-terminal.md.html | 2 | ||||
-rw-r--r-- | docs/topics/CHANGELOG.md.html | 8 | ||||
-rw-r--r-- | docs/topics/LICENSE.md.html | 2 | ||||
-rw-r--r-- | rockspecs/luasystem-0.4.1-1.rockspec | 85 | ||||
-rw-r--r-- | src/core.c | 2 |
19 files changed, 112 insertions, 17 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index a3544ea..d1e4766 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,10 @@ The scope of what is covered by the version number excludes: ## Version history +### Version 0.4.1, released 25-Jun-2024 + +- Fix: when compiling with `msys2` the `conio.h` header is required + ### Version 0.4.0, released 20-Jun-2024 - Feat: `getconsoleflags` and `setconsoleflags` for getting/setting the current console configuration flags on Windows diff --git a/docs/classes/bitflags.html b/docs/classes/bitflags.html index f063149..bc3b669 100644 --- a/docs/classes/bitflags.html +++ b/docs/classes/bitflags.html @@ -298,7 +298,7 @@ return <code>false</code> if the flags are checked. </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/docs/examples/compat.lua.html b/docs/examples/compat.lua.html index a0abafe..8eca99d 100644 --- a/docs/examples/compat.lua.html +++ b/docs/examples/compat.lua.html @@ -112,7 +112,7 @@ </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/docs/examples/flag_debugging.lua.html b/docs/examples/flag_debugging.lua.html index 38f506a..5fb1d5c 100644 --- a/docs/examples/flag_debugging.lua.html +++ b/docs/examples/flag_debugging.lua.html @@ -80,7 +80,7 @@ </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/docs/examples/password_input.lua.html b/docs/examples/password_input.lua.html index 4234fbb..fc73b72 100644 --- a/docs/examples/password_input.lua.html +++ b/docs/examples/password_input.lua.html @@ -132,7 +132,7 @@ useful for reading secrets from the user. </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/docs/examples/read.lua.html b/docs/examples/read.lua.html index c7697d3..cc7bf90 100644 --- a/docs/examples/read.lua.html +++ b/docs/examples/read.lua.html @@ -143,7 +143,7 @@ sys.<span class="function-name">setnonblock</span>(<span class="global">io</span </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/docs/examples/readline.lua.html b/docs/examples/readline.lua.html index 7895a81..99a3006 100644 --- a/docs/examples/readline.lua.html +++ b/docs/examples/readline.lua.html @@ -545,7 +545,7 @@ sys.<span class="function-name">setconsoleflags</span>(<span class="global">io</ </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/docs/examples/spinner.lua.html b/docs/examples/spinner.lua.html index 181cbe5..dde7048 100644 --- a/docs/examples/spinner.lua.html +++ b/docs/examples/spinner.lua.html @@ -137,7 +137,7 @@ sys.<span class="function-name">setnonblock</span>(<span class="global">io</span </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/docs/examples/spiral_snake.lua.html b/docs/examples/spiral_snake.lua.html index 7ebb838..8964545 100644 --- a/docs/examples/spiral_snake.lua.html +++ b/docs/examples/spiral_snake.lua.html @@ -145,7 +145,7 @@ codes for moving the cursor around. </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/docs/examples/terminalsize.lua.html b/docs/examples/terminalsize.lua.html index d7f902d..98784b1 100644 --- a/docs/examples/terminalsize.lua.html +++ b/docs/examples/terminalsize.lua.html @@ -110,7 +110,7 @@ sys.<span class="function-name">tcsetattr</span>(<span class="global">io</span>. </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/docs/index.html b/docs/index.html index 52c93fe..14d890a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -142,7 +142,7 @@ </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/docs/modules/system.html b/docs/modules/system.html index 0423e37..784ca2a 100644 --- a/docs/modules/system.html +++ b/docs/modules/system.html @@ -1411,7 +1411,7 @@ This function will sleep, without doing a busy-loop and wasting CPU cycles. </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/docs/topics/01-introduction.md.html b/docs/topics/01-introduction.md.html index 019f7e4..cc92a88 100644 --- a/docs/topics/01-introduction.md.html +++ b/docs/topics/01-introduction.md.html @@ -84,7 +84,7 @@ independence.</p> </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/docs/topics/02-development.md.html b/docs/topics/02-development.md.html index e911eed..b1daa61 100644 --- a/docs/topics/02-development.md.html +++ b/docs/topics/02-development.md.html @@ -84,7 +84,7 @@ pass locally, and do not rely on CI only.</p> </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/docs/topics/03-terminal.md.html b/docs/topics/03-terminal.md.html index 3e7e548..6a0750d 100644 --- a/docs/topics/03-terminal.md.html +++ b/docs/topics/03-terminal.md.html @@ -218,7 +218,7 @@ For an example see <a href="../examples/password_input.lua.html"><code>examples/ </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/docs/topics/CHANGELOG.md.html b/docs/topics/CHANGELOG.md.html index da8ddde..b034abb 100644 --- a/docs/topics/CHANGELOG.md.html +++ b/docs/topics/CHANGELOG.md.html @@ -107,6 +107,12 @@ <p><a name="Version_history"></a></p> <h2>Version history</h2> +<h3>Version 0.4.1, released 25-Jun-2024</h3> + +<ul> + <li>Fix: when compiling with <code>msys2</code> the <code>conio.h</code> header is required</li> +</ul> + <h3>Version 0.4.0, released 20-Jun-2024</h3> <ul> @@ -151,7 +157,7 @@ </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/docs/topics/LICENSE.md.html b/docs/topics/LICENSE.md.html index 9866af5..2316e85 100644 --- a/docs/topics/LICENSE.md.html +++ b/docs/topics/LICENSE.md.html @@ -93,7 +93,7 @@ SOFTWARE.</p> </div> <!-- id="main" --> <div id="about"> <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> -<i style="float:right;">Last updated 2024-06-20 23:11:37 </i> +<i style="float:right;">Last updated 2024-06-25 09:02:59 </i> </div> <!-- id="about" --> </div> <!-- id="container" --> </body> diff --git a/rockspecs/luasystem-0.4.1-1.rockspec b/rockspecs/luasystem-0.4.1-1.rockspec new file mode 100644 index 0000000..0c7a7c4 --- /dev/null +++ b/rockspecs/luasystem-0.4.1-1.rockspec @@ -0,0 +1,85 @@ +local package_name = "luasystem" +local package_version = "0.4.1" +local rockspec_revision = "1" +local github_account_name = "lunarmodules" +local github_repo_name = "luasystem" + + +package = package_name +version = package_version.."-"..rockspec_revision + +source = { + url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git", + branch = (package_version == "scm") and "master" or nil, + tag = (package_version ~= "scm") and "v"..package_version or nil, +} + +description = { + summary = 'Platform independent system calls for Lua.', + detailed = [[ + Adds a Lua API for making platform independent system calls. + ]], + license = 'MIT <http://opensource.org/licenses/MIT>', + homepage = "https://github.com/"..github_account_name.."/"..github_repo_name, +} + +dependencies = { + 'lua >= 5.1', +} + +local function make_platform(plat) + local defines = { + linux = { }, + unix = { }, + macosx = { }, + win32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" }, + mingw32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" }, + } + local libraries = { + linux = { "rt" }, + unix = { }, + macosx = { }, + win32 = { "advapi32", "winmm" }, + mingw32 = { }, + } + local libdirs = { + linux = nil, + unix = nil, + macosx = nil, + win32 = nil, + mingw32 = { }, + } + return { + modules = { + ['system.core'] = { + sources = { + 'src/core.c', + 'src/compat.c', + 'src/time.c', + 'src/environment.c', + 'src/random.c', + 'src/term.c', + 'src/bitflags.c', + 'src/wcwidth.c', + }, + defines = defines[plat], + libraries = libraries[plat], + libdirs = libdirs[plat], + }, + }, + } +end + +build = { + type = 'builtin', + platforms = { + linux = make_platform('linux'), + unix = make_platform('unix'), + macosx = make_platform('macosx'), + win32 = make_platform('win32'), + mingw32 = make_platform('mingw32'), + }, + modules = { + ['system.init'] = 'system/init.lua', + }, +} @@ -4,7 +4,7 @@ #include <lua.h> #include <lauxlib.h> -#define LUASYSTEM_VERSION "LuaSystem 0.4.0" +#define LUASYSTEM_VERSION "LuaSystem 0.4.1" #ifdef _WIN32 #define LUAEXPORT __declspec(dllexport) |