From 9e0790c5060c5346039f92f4c9d97a2dbc7316ed Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Wed, 18 Dec 2024 02:50:21 -0300 Subject: Release v0.4.5 --- CHANGELOG.md | 5 +++ LICENSE.md | 3 +- docs/classes/bitflags.html | 2 +- docs/examples/compat.lua.html | 2 +- docs/examples/flag_debugging.lua.html | 2 +- docs/examples/password_input.lua.html | 2 +- docs/examples/read.lua.html | 2 +- docs/examples/readline.lua.html | 2 +- docs/examples/spinner.lua.html | 2 +- docs/examples/spiral_snake.lua.html | 2 +- docs/examples/terminalsize.lua.html | 2 +- docs/index.html | 2 +- docs/modules/system.html | 2 +- docs/topics/01-introduction.md.html | 2 +- docs/topics/02-development.md.html | 2 +- docs/topics/03-terminal.md.html | 2 +- docs/topics/CHANGELOG.md.html | 9 +++- docs/topics/LICENSE.md.html | 5 ++- rockspecs/luasystem-0.4.5-1.rockspec | 85 +++++++++++++++++++++++++++++++++++ src/core.c | 2 +- 20 files changed, 118 insertions(+), 19 deletions(-) create mode 100644 rockspecs/luasystem-0.4.5-1.rockspec diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a8d071..9a64d29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,11 @@ The scope of what is covered by the version number excludes: ## Version history +### version 0.4.5, released 18-Dec-2024 + +- Fix: suppress a warning when building with clang +- Fix: do not rely on luaconf.h to include limits.h, fixes builds with latest LuaJIT (#38). + ### version 0.4.4, released 03-Sep-2024 - Fix: include all objects in Makefile diff --git a/LICENSE.md b/LICENSE.md index 16c86d0..92f0bbb 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,7 @@ # MIT License -### Copyright (c) 2016-2024 Oscar Lim +### Copyright (c) 2016-2024, Oscar Lim +### Copyright (c) 2024, the luasystem project authors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/docs/classes/bitflags.html b/docs/classes/bitflags.html index 86b412b..4ed5aaf 100644 --- a/docs/classes/bitflags.html +++ b/docs/classes/bitflags.html @@ -298,7 +298,7 @@ return false if the flags are checked.
generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
diff --git a/docs/examples/compat.lua.html b/docs/examples/compat.lua.html index 9d9c48e..b887c91 100644 --- a/docs/examples/compat.lua.html +++ b/docs/examples/compat.lua.html @@ -112,7 +112,7 @@
generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
diff --git a/docs/examples/flag_debugging.lua.html b/docs/examples/flag_debugging.lua.html index 206c28d..8fcf0a9 100644 --- a/docs/examples/flag_debugging.lua.html +++ b/docs/examples/flag_debugging.lua.html @@ -80,7 +80,7 @@
generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
diff --git a/docs/examples/password_input.lua.html b/docs/examples/password_input.lua.html index 0d4715a..f29e429 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.
generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
diff --git a/docs/examples/read.lua.html b/docs/examples/read.lua.html index 3a8b497..1d6bb3e 100644 --- a/docs/examples/read.lua.html +++ b/docs/examples/read.lua.html @@ -143,7 +143,7 @@ sys.setnonblock(io
generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
diff --git a/docs/examples/readline.lua.html b/docs/examples/readline.lua.html index 3b965ec..a78f5b3 100644 --- a/docs/examples/readline.lua.html +++ b/docs/examples/readline.lua.html @@ -545,7 +545,7 @@ sys.setconsoleflags(io
generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
diff --git a/docs/examples/spinner.lua.html b/docs/examples/spinner.lua.html index defe722..b56f1ed 100644 --- a/docs/examples/spinner.lua.html +++ b/docs/examples/spinner.lua.html @@ -137,7 +137,7 @@ sys.setnonblock(io
generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
diff --git a/docs/examples/spiral_snake.lua.html b/docs/examples/spiral_snake.lua.html index 6914e1a..961f506 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.
generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
diff --git a/docs/examples/terminalsize.lua.html b/docs/examples/terminalsize.lua.html index 5514f30..c01a3d3 100644 --- a/docs/examples/terminalsize.lua.html +++ b/docs/examples/terminalsize.lua.html @@ -110,7 +110,7 @@ sys.tcsetattr(io.
generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
diff --git a/docs/index.html b/docs/index.html index 4691414..1ddd617 100644 --- a/docs/index.html +++ b/docs/index.html @@ -142,7 +142,7 @@
generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
diff --git a/docs/modules/system.html b/docs/modules/system.html index 99a42a1..ec077d8 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.
generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
diff --git a/docs/topics/01-introduction.md.html b/docs/topics/01-introduction.md.html index 41813ee..5b5f07d 100644 --- a/docs/topics/01-introduction.md.html +++ b/docs/topics/01-introduction.md.html @@ -84,7 +84,7 @@ independence.

generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
diff --git a/docs/topics/02-development.md.html b/docs/topics/02-development.md.html index ab1977d..b305201 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.

generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
diff --git a/docs/topics/03-terminal.md.html b/docs/topics/03-terminal.md.html index cb4131a..6471a30 100644 --- a/docs/topics/03-terminal.md.html +++ b/docs/topics/03-terminal.md.html @@ -218,7 +218,7 @@ For an example see examples/
generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
diff --git a/docs/topics/CHANGELOG.md.html b/docs/topics/CHANGELOG.md.html index 21c5452..8567695 100644 --- a/docs/topics/CHANGELOG.md.html +++ b/docs/topics/CHANGELOG.md.html @@ -107,6 +107,13 @@

Version history

+

version 0.4.5, released 18-Dec-2024

+ +
    +
  • Fix: suppress a warning when building with clang
  • +
  • Fix: do not rely on luaconf.h to include limits.h, fixes builds with latest LuaJIT (#38).
  • +
+

version 0.4.4, released 03-Sep-2024

    @@ -176,7 +183,7 @@
    generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
    diff --git a/docs/topics/LICENSE.md.html b/docs/topics/LICENSE.md.html index f0e2271..1fe8797 100644 --- a/docs/topics/LICENSE.md.html +++ b/docs/topics/LICENSE.md.html @@ -68,7 +68,8 @@

    MIT License

    -

    Copyright (c) 2016-2024 Oscar Lim

    +

    Copyright (c) 2016-2024, Oscar Lim

    +

    Copyright (c) 2024, the luasystem project authors.

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in @@ -93,7 +94,7 @@ SOFTWARE.

    generated by LDoc 1.5.0 -Last updated 2024-09-03 14:15:56 +Last updated 2024-12-18 02:50:03
    diff --git a/rockspecs/luasystem-0.4.5-1.rockspec b/rockspecs/luasystem-0.4.5-1.rockspec new file mode 100644 index 0000000..105c6fe --- /dev/null +++ b/rockspecs/luasystem-0.4.5-1.rockspec @@ -0,0 +1,85 @@ +local package_name = "luasystem" +local package_version = "0.4.5" +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 ', + 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', + }, +} diff --git a/src/core.c b/src/core.c index 6533f4e..06ae3e1 100644 --- a/src/core.c +++ b/src/core.c @@ -4,7 +4,7 @@ #include #include -#define LUASYSTEM_VERSION "LuaSystem 0.4.4" +#define LUASYSTEM_VERSION "LuaSystem 0.4.5" #ifdef _WIN32 #define LUAEXPORT __declspec(dllexport) -- cgit v1.2.3-55-g6feb