aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md4
-rw-r--r--docs/index.html2
-rw-r--r--docs/topics/01-introduction.md.html2
-rw-r--r--docs/topics/CHANGELOG.md.html6
-rw-r--r--docs/topics/LICENSE.md.html2
-rw-r--r--rockspecs/luasystem-0.3.0-1.rockspec75
-rw-r--r--src/core.c2
7 files changed, 84 insertions, 9 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 56d1886..eb85c94 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,7 +14,7 @@ The scope of what is covered by the version number excludes:
14 14
15- create a release branch 15- create a release branch
16- update the changelog below 16- update the changelog below
17- update version and copyright-years in `./LICENSE.md` and `./src/time.c` (in module constants) 17- update version and copyright-years in `./LICENSE.md` and `./src/core.c` (in module constants)
18- create a new rockspec and update the version inside the new rockspec:<br/> 18- create a new rockspec and update the version inside the new rockspec:<br/>
19 `cp luasystem-scm-0.rockspec ./rockspecs/luasystem-X.Y.Z-1.rockspec` 19 `cp luasystem-scm-0.rockspec ./rockspecs/luasystem-X.Y.Z-1.rockspec`
20- clean and render the docs: run `ldoc .` 20- clean and render the docs: run `ldoc .`
@@ -28,7 +28,7 @@ The scope of what is covered by the version number excludes:
28 28
29## Version history 29## Version history
30 30
31### Version X.Y.Z, unreleased 31### Version 0.3.0, released 15-Dec-2023
32 32
33- Feat: on Windows `sleep` now has a precision parameter 33- Feat: on Windows `sleep` now has a precision parameter
34- Feat: `setenv` added to set environment variables. 34- Feat: `setenv` added to set environment variables.
diff --git a/docs/index.html b/docs/index.html
index eb241c6..cd95fc2 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -359,7 +359,7 @@ This function will sleep, without doing a busy-loop and wasting CPU cycles.
359</div> <!-- id="main" --> 359</div> <!-- id="main" -->
360<div id="about"> 360<div id="about">
361<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i> 361<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
362<i style="float:right;">Last updated 2023-11-15 07:42:18 </i> 362<i style="float:right;">Last updated 2023-12-15 13:15:09 </i>
363</div> <!-- id="about" --> 363</div> <!-- id="about" -->
364</div> <!-- id="container" --> 364</div> <!-- id="container" -->
365</body> 365</body>
diff --git a/docs/topics/01-introduction.md.html b/docs/topics/01-introduction.md.html
index 2901cc9..319b9d5 100644
--- a/docs/topics/01-introduction.md.html
+++ b/docs/topics/01-introduction.md.html
@@ -63,7 +63,7 @@ independence.</p>
63</div> <!-- id="main" --> 63</div> <!-- id="main" -->
64<div id="about"> 64<div id="about">
65<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i> 65<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
66<i style="float:right;">Last updated 2023-11-15 07:42:18 </i> 66<i style="float:right;">Last updated 2023-12-15 13:15:09 </i>
67</div> <!-- id="about" --> 67</div> <!-- id="about" -->
68</div> <!-- id="container" --> 68</div> <!-- id="container" -->
69</body> 69</body>
diff --git a/docs/topics/CHANGELOG.md.html b/docs/topics/CHANGELOG.md.html
index f909b4b..4e656c7 100644
--- a/docs/topics/CHANGELOG.md.html
+++ b/docs/topics/CHANGELOG.md.html
@@ -70,7 +70,7 @@
70<ul> 70<ul>
71 <li>create a release branch</li> 71 <li>create a release branch</li>
72 <li>update the changelog below</li> 72 <li>update the changelog below</li>
73 <li>update version and copyright-years in <code>./LICENSE.md</code> and <code>./src/time.c</code> (in module constants)</li> 73 <li>update version and copyright-years in <code>./LICENSE.md</code> and <code>./src/core.c</code> (in module constants)</li>
74 <li>create a new rockspec and update the version inside the new rockspec:<br/> 74 <li>create a new rockspec and update the version inside the new rockspec:<br/>
75 <code>cp luasystem-scm-0.rockspec ./rockspecs/luasystem-X.Y.Z-1.rockspec</code></li> 75 <code>cp luasystem-scm-0.rockspec ./rockspecs/luasystem-X.Y.Z-1.rockspec</code></li>
76 <li>clean and render the docs: run <code>ldoc .</code></li> 76 <li>clean and render the docs: run <code>ldoc .</code></li>
@@ -86,7 +86,7 @@
86<p><a name="Version_history"></a></p> 86<p><a name="Version_history"></a></p>
87<h2>Version history</h2> 87<h2>Version history</h2>
88 88
89<h3>Version X.Y.Z, unreleased</h3> 89<h3>Version 0.3.0, released 15-Dec-2023</h3>
90 90
91<ul> 91<ul>
92 <li>Feat: on Windows <a href="../index.html#sleep">sleep</a> now has a precision parameter</li> 92 <li>Feat: on Windows <a href="../index.html#sleep">sleep</a> now has a precision parameter</li>
@@ -114,7 +114,7 @@
114</div> <!-- id="main" --> 114</div> <!-- id="main" -->
115<div id="about"> 115<div id="about">
116<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i> 116<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
117<i style="float:right;">Last updated 2023-11-15 07:42:18 </i> 117<i style="float:right;">Last updated 2023-12-15 13:15:09 </i>
118</div> <!-- id="about" --> 118</div> <!-- id="about" -->
119</div> <!-- id="container" --> 119</div> <!-- id="container" -->
120</body> 120</body>
diff --git a/docs/topics/LICENSE.md.html b/docs/topics/LICENSE.md.html
index 67614d2..de3eeff 100644
--- a/docs/topics/LICENSE.md.html
+++ b/docs/topics/LICENSE.md.html
@@ -72,7 +72,7 @@ SOFTWARE.</p>
72</div> <!-- id="main" --> 72</div> <!-- id="main" -->
73<div id="about"> 73<div id="about">
74<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i> 74<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
75<i style="float:right;">Last updated 2023-11-15 07:42:18 </i> 75<i style="float:right;">Last updated 2023-12-15 13:15:09 </i>
76</div> <!-- id="about" --> 76</div> <!-- id="about" -->
77</div> <!-- id="container" --> 77</div> <!-- id="container" -->
78</body> 78</body>
diff --git a/rockspecs/luasystem-0.3.0-1.rockspec b/rockspecs/luasystem-0.3.0-1.rockspec
new file mode 100644
index 0000000..982aa89
--- /dev/null
+++ b/rockspecs/luasystem-0.3.0-1.rockspec
@@ -0,0 +1,75 @@
1local package_name = "luasystem"
2local package_version = "0.3.0"
3local rockspec_revision = "1"
4local github_account_name = "lunarmodules"
5local github_repo_name = "luasystem"
6
7
8package = package_name
9version = package_version.."-"..rockspec_revision
10
11source = {
12 url = "git+https://github.com/"..github_account_name.."/"..github_repo_name..".git",
13 branch = (package_version == "scm") and "master" or nil,
14 tag = (package_version ~= "scm") and "v"..package_version or nil,
15}
16
17description = {
18 summary = 'Platform independent system calls for Lua.',
19 detailed = [[
20 Adds a Lua API for making platform independent system calls.
21 ]],
22 license = 'MIT <http://opensource.org/licenses/MIT>',
23 homepage = "https://github.com/"..github_account_name.."/"..github_repo_name,
24}
25
26dependencies = {
27 'lua >= 5.1',
28}
29
30local function make_platform(plat)
31 local defines = {
32 linux = { },
33 unix = { },
34 macosx = { },
35 win32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" },
36 mingw32 = { "WINVER=0x0600", "_WIN32_WINNT=0x0600" },
37 }
38 local libraries = {
39 linux = { "rt" },
40 unix = { },
41 macosx = { },
42 win32 = { "advapi32", "winmm" },
43 mingw32 = { },
44 }
45 return {
46 modules = {
47 ['system.core'] = {
48 sources = {
49 'src/core.c',
50 'src/compat.c',
51 'src/time.c',
52 'src/environment.c',
53 'src/random.c',
54 'src/term.c',
55 },
56 defines = defines[plat],
57 libraries = libraries[plat],
58 },
59 },
60 }
61end
62
63build = {
64 type = 'builtin',
65 platforms = {
66 linux = make_platform('linux'),
67 unix = make_platform('unix'),
68 macosx = make_platform('macosx'),
69 win32 = make_platform('win32'),
70 mingw32 = make_platform('mingw32'),
71 },
72 modules = {
73 ['system.init'] = 'system/init.lua',
74 },
75}
diff --git a/src/core.c b/src/core.c
index 87fd105..729023f 100644
--- a/src/core.c
+++ b/src/core.c
@@ -4,7 +4,7 @@
4#include <lua.h> 4#include <lua.h>
5#include <lauxlib.h> 5#include <lauxlib.h>
6 6
7#define LUASYSTEM_VERSION "LuaSystem 0.2.1" 7#define LUASYSTEM_VERSION "LuaSystem 0.3.0"
8 8
9#ifdef _WIN32 9#ifdef _WIN32
10#define LUAEXPORT __declspec(dllexport) 10#define LUAEXPORT __declspec(dllexport)