diff options
Diffstat (limited to '')
| -rw-r--r-- | CHANGELOG.md | 5 | ||||
| -rw-r--r-- | LICENSE.md | 3 | ||||
| -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 | 9 | ||||
| -rw-r--r-- | docs/topics/LICENSE.md.html | 5 | ||||
| -rw-r--r-- | rockspecs/luasystem-0.4.5-1.rockspec | 85 | ||||
| -rw-r--r-- | src/core.c | 2 |
20 files changed, 118 insertions, 19 deletions
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: | |||
| 28 | 28 | ||
| 29 | ## Version history | 29 | ## Version history |
| 30 | 30 | ||
| 31 | ### version 0.4.5, released 18-Dec-2024 | ||
| 32 | |||
| 33 | - Fix: suppress a warning when building with clang | ||
| 34 | - Fix: do not rely on luaconf.h to include limits.h, fixes builds with latest LuaJIT (#38). | ||
| 35 | |||
| 31 | ### version 0.4.4, released 03-Sep-2024 | 36 | ### version 0.4.4, released 03-Sep-2024 |
| 32 | 37 | ||
| 33 | - Fix: include all objects in Makefile | 38 | - Fix: include all objects in Makefile |
| @@ -1,6 +1,7 @@ | |||
| 1 | # MIT License | 1 | # MIT License |
| 2 | 2 | ||
| 3 | ### Copyright (c) 2016-2024 Oscar Lim | 3 | ### Copyright (c) 2016-2024, Oscar Lim |
| 4 | ### Copyright (c) 2024, the luasystem project authors. | ||
| 4 | 5 | ||
| 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of |
| 6 | this software and associated documentation files (the "Software"), to deal in | 7 | 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 <code>false</code> if the flags are checked. | |||
| 298 | </div> <!-- id="main" --> | 298 | </div> <!-- id="main" --> |
| 299 | <div id="about"> | 299 | <div id="about"> |
| 300 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 300 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 301 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 301 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 302 | </div> <!-- id="about" --> | 302 | </div> <!-- id="about" --> |
| 303 | </div> <!-- id="container" --> | 303 | </div> <!-- id="container" --> |
| 304 | </body> | 304 | </body> |
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 @@ | |||
| 112 | </div> <!-- id="main" --> | 112 | </div> <!-- id="main" --> |
| 113 | <div id="about"> | 113 | <div id="about"> |
| 114 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 114 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 115 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 115 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 116 | </div> <!-- id="about" --> | 116 | </div> <!-- id="about" --> |
| 117 | </div> <!-- id="container" --> | 117 | </div> <!-- id="container" --> |
| 118 | </body> | 118 | </body> |
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 @@ | |||
| 80 | </div> <!-- id="main" --> | 80 | </div> <!-- id="main" --> |
| 81 | <div id="about"> | 81 | <div id="about"> |
| 82 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 82 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 83 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 83 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 84 | </div> <!-- id="about" --> | 84 | </div> <!-- id="about" --> |
| 85 | </div> <!-- id="container" --> | 85 | </div> <!-- id="container" --> |
| 86 | </body> | 86 | </body> |
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. | |||
| 132 | </div> <!-- id="main" --> | 132 | </div> <!-- id="main" --> |
| 133 | <div id="about"> | 133 | <div id="about"> |
| 134 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 134 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 135 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 135 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 136 | </div> <!-- id="about" --> | 136 | </div> <!-- id="about" --> |
| 137 | </div> <!-- id="container" --> | 137 | </div> <!-- id="container" --> |
| 138 | </body> | 138 | </body> |
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.<span class="function-name">setnonblock</span>(<span class="global">io</span | |||
| 143 | </div> <!-- id="main" --> | 143 | </div> <!-- id="main" --> |
| 144 | <div id="about"> | 144 | <div id="about"> |
| 145 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 145 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 146 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 146 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 147 | </div> <!-- id="about" --> | 147 | </div> <!-- id="about" --> |
| 148 | </div> <!-- id="container" --> | 148 | </div> <!-- id="container" --> |
| 149 | </body> | 149 | </body> |
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.<span class="function-name">setconsoleflags</span>(<span class="global">io</ | |||
| 545 | </div> <!-- id="main" --> | 545 | </div> <!-- id="main" --> |
| 546 | <div id="about"> | 546 | <div id="about"> |
| 547 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 547 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 548 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 548 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 549 | </div> <!-- id="about" --> | 549 | </div> <!-- id="about" --> |
| 550 | </div> <!-- id="container" --> | 550 | </div> <!-- id="container" --> |
| 551 | </body> | 551 | </body> |
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.<span class="function-name">setnonblock</span>(<span class="global">io</span | |||
| 137 | </div> <!-- id="main" --> | 137 | </div> <!-- id="main" --> |
| 138 | <div id="about"> | 138 | <div id="about"> |
| 139 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 139 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 140 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 140 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 141 | </div> <!-- id="about" --> | 141 | </div> <!-- id="about" --> |
| 142 | </div> <!-- id="container" --> | 142 | </div> <!-- id="container" --> |
| 143 | </body> | 143 | </body> |
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. | |||
| 145 | </div> <!-- id="main" --> | 145 | </div> <!-- id="main" --> |
| 146 | <div id="about"> | 146 | <div id="about"> |
| 147 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 147 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 148 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 148 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 149 | </div> <!-- id="about" --> | 149 | </div> <!-- id="about" --> |
| 150 | </div> <!-- id="container" --> | 150 | </div> <!-- id="container" --> |
| 151 | </body> | 151 | </body> |
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.<span class="function-name">tcsetattr</span>(<span class="global">io</span>. | |||
| 110 | </div> <!-- id="main" --> | 110 | </div> <!-- id="main" --> |
| 111 | <div id="about"> | 111 | <div id="about"> |
| 112 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 112 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 113 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 113 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 114 | </div> <!-- id="about" --> | 114 | </div> <!-- id="about" --> |
| 115 | </div> <!-- id="container" --> | 115 | </div> <!-- id="container" --> |
| 116 | </body> | 116 | </body> |
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 @@ | |||
| 142 | </div> <!-- id="main" --> | 142 | </div> <!-- id="main" --> |
| 143 | <div id="about"> | 143 | <div id="about"> |
| 144 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 144 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 145 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 145 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 146 | </div> <!-- id="about" --> | 146 | </div> <!-- id="about" --> |
| 147 | </div> <!-- id="container" --> | 147 | </div> <!-- id="container" --> |
| 148 | </body> | 148 | </body> |
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. | |||
| 1411 | </div> <!-- id="main" --> | 1411 | </div> <!-- id="main" --> |
| 1412 | <div id="about"> | 1412 | <div id="about"> |
| 1413 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 1413 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 1414 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 1414 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 1415 | </div> <!-- id="about" --> | 1415 | </div> <!-- id="about" --> |
| 1416 | </div> <!-- id="container" --> | 1416 | </div> <!-- id="container" --> |
| 1417 | </body> | 1417 | </body> |
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.</p> | |||
| 84 | </div> <!-- id="main" --> | 84 | </div> <!-- id="main" --> |
| 85 | <div id="about"> | 85 | <div id="about"> |
| 86 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 86 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 87 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 87 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 88 | </div> <!-- id="about" --> | 88 | </div> <!-- id="about" --> |
| 89 | </div> <!-- id="container" --> | 89 | </div> <!-- id="container" --> |
| 90 | </body> | 90 | </body> |
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.</p> | |||
| 84 | </div> <!-- id="main" --> | 84 | </div> <!-- id="main" --> |
| 85 | <div id="about"> | 85 | <div id="about"> |
| 86 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 86 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 87 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 87 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 88 | </div> <!-- id="about" --> | 88 | </div> <!-- id="about" --> |
| 89 | </div> <!-- id="container" --> | 89 | </div> <!-- id="container" --> |
| 90 | </body> | 90 | </body> |
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 <a href="../examples/password_input.lua.html"><code>examples/ | |||
| 218 | </div> <!-- id="main" --> | 218 | </div> <!-- id="main" --> |
| 219 | <div id="about"> | 219 | <div id="about"> |
| 220 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 220 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 221 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 221 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 222 | </div> <!-- id="about" --> | 222 | </div> <!-- id="about" --> |
| 223 | </div> <!-- id="container" --> | 223 | </div> <!-- id="container" --> |
| 224 | </body> | 224 | </body> |
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 @@ | |||
| 107 | <p><a name="Version_history"></a></p> | 107 | <p><a name="Version_history"></a></p> |
| 108 | <h2>Version history</h2> | 108 | <h2>Version history</h2> |
| 109 | 109 | ||
| 110 | <h3>version 0.4.5, released 18-Dec-2024</h3> | ||
| 111 | |||
| 112 | <ul> | ||
| 113 | <li>Fix: suppress a warning when building with clang</li> | ||
| 114 | <li>Fix: do not rely on luaconf.h to include limits.h, fixes builds with latest LuaJIT (#38).</li> | ||
| 115 | </ul> | ||
| 116 | |||
| 110 | <h3>version 0.4.4, released 03-Sep-2024</h3> | 117 | <h3>version 0.4.4, released 03-Sep-2024</h3> |
| 111 | 118 | ||
| 112 | <ul> | 119 | <ul> |
| @@ -176,7 +183,7 @@ | |||
| 176 | </div> <!-- id="main" --> | 183 | </div> <!-- id="main" --> |
| 177 | <div id="about"> | 184 | <div id="about"> |
| 178 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 185 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 179 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 186 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 180 | </div> <!-- id="about" --> | 187 | </div> <!-- id="about" --> |
| 181 | </div> <!-- id="container" --> | 188 | </div> <!-- id="container" --> |
| 182 | </body> | 189 | </body> |
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 @@ | |||
| 68 | 68 | ||
| 69 | <h1>MIT License</h1> | 69 | <h1>MIT License</h1> |
| 70 | 70 | ||
| 71 | <h3>Copyright (c) 2016-2024 Oscar Lim</h3> | 71 | <h3>Copyright (c) 2016-2024, Oscar Lim</h3> |
| 72 | <h3>Copyright (c) 2024, the luasystem project authors.</h3> | ||
| 72 | 73 | ||
| 73 | <p>Permission is hereby granted, free of charge, to any person obtaining a copy of | 74 | <p>Permission is hereby granted, free of charge, to any person obtaining a copy of |
| 74 | this software and associated documentation files (the "Software"), to deal in | 75 | this software and associated documentation files (the "Software"), to deal in |
| @@ -93,7 +94,7 @@ SOFTWARE.</p> | |||
| 93 | </div> <!-- id="main" --> | 94 | </div> <!-- id="main" --> |
| 94 | <div id="about"> | 95 | <div id="about"> |
| 95 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> | 96 | <i>generated by <a href="http://github.com/lunarmodules/LDoc">LDoc 1.5.0</a></i> |
| 96 | <i style="float:right;">Last updated 2024-09-03 14:15:56 </i> | 97 | <i style="float:right;">Last updated 2024-12-18 02:50:03 </i> |
| 97 | </div> <!-- id="about" --> | 98 | </div> <!-- id="about" --> |
| 98 | </div> <!-- id="container" --> | 99 | </div> <!-- id="container" --> |
| 99 | </body> | 100 | </body> |
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 @@ | |||
| 1 | local package_name = "luasystem" | ||
| 2 | local package_version = "0.4.5" | ||
| 3 | local rockspec_revision = "1" | ||
| 4 | local github_account_name = "lunarmodules" | ||
| 5 | local github_repo_name = "luasystem" | ||
| 6 | |||
| 7 | |||
| 8 | package = package_name | ||
| 9 | version = package_version.."-"..rockspec_revision | ||
| 10 | |||
| 11 | source = { | ||
| 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 | |||
| 17 | description = { | ||
| 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 | |||
| 26 | dependencies = { | ||
| 27 | 'lua >= 5.1', | ||
| 28 | } | ||
| 29 | |||
| 30 | local 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 | local libdirs = { | ||
| 46 | linux = nil, | ||
| 47 | unix = nil, | ||
| 48 | macosx = nil, | ||
| 49 | win32 = nil, | ||
| 50 | mingw32 = { }, | ||
| 51 | } | ||
| 52 | return { | ||
| 53 | modules = { | ||
| 54 | ['system.core'] = { | ||
| 55 | sources = { | ||
| 56 | 'src/core.c', | ||
| 57 | 'src/compat.c', | ||
| 58 | 'src/time.c', | ||
| 59 | 'src/environment.c', | ||
| 60 | 'src/random.c', | ||
| 61 | 'src/term.c', | ||
| 62 | 'src/bitflags.c', | ||
| 63 | 'src/wcwidth.c', | ||
| 64 | }, | ||
| 65 | defines = defines[plat], | ||
| 66 | libraries = libraries[plat], | ||
| 67 | libdirs = libdirs[plat], | ||
| 68 | }, | ||
| 69 | }, | ||
| 70 | } | ||
| 71 | end | ||
| 72 | |||
| 73 | build = { | ||
| 74 | type = 'builtin', | ||
| 75 | platforms = { | ||
| 76 | linux = make_platform('linux'), | ||
| 77 | unix = make_platform('unix'), | ||
| 78 | macosx = make_platform('macosx'), | ||
| 79 | win32 = make_platform('win32'), | ||
| 80 | mingw32 = make_platform('mingw32'), | ||
| 81 | }, | ||
| 82 | modules = { | ||
| 83 | ['system.init'] = 'system/init.lua', | ||
| 84 | }, | ||
| 85 | } | ||
| @@ -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.4.4" | 7 | #define LUASYSTEM_VERSION "LuaSystem 0.4.5" |
| 8 | 8 | ||
| 9 | #ifdef _WIN32 | 9 | #ifdef _WIN32 |
| 10 | #define LUAEXPORT __declspec(dllexport) | 10 | #define LUAEXPORT __declspec(dllexport) |
