aboutsummaryrefslogtreecommitdiff
path: root/src/lanes.lua
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-03-14 11:32:58 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2025-03-14 11:32:58 +0100
commitdee0756ff21c1f7dd4eea067dfb90feb1ba4763d (patch)
tree981ddd4ddc22bc1fae54ce3e0034da746571fb1a /src/lanes.lua
parent536a64557c82c350fd73ea64c6d4dd1737896579 (diff)
downloadlanes-dee0756ff21c1f7dd4eea067dfb90feb1ba4763d.tar.gz
lanes-dee0756ff21c1f7dd4eea067dfb90feb1ba4763d.tar.bz2
lanes-dee0756ff21c1f7dd4eea067dfb90feb1ba4763d.zip
lanes/core.[so|dll] → lanes_core.[so|dll]
Diffstat (limited to 'src/lanes.lua')
-rw-r--r--src/lanes.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lanes.lua b/src/lanes.lua
index 4df1f64..98f8c20 100644
--- a/src/lanes.lua
+++ b/src/lanes.lua
@@ -35,7 +35,7 @@ THE SOFTWARE.
35=============================================================================== 35===============================================================================
36]]-- 36]]--
37 37
38local core = require "lanes.core" 38local core = require "lanes_core"
39-- Lua 5.1: module() creates a global variable 39-- Lua 5.1: module() creates a global variable
40-- Lua 5.2: module() is gone 40-- Lua 5.2: module() is gone
41-- almost everything module() does is done by require() anyway 41-- almost everything module() does is done by require() anyway
@@ -228,7 +228,7 @@ local valid_libs =
228 ["table"] = true, 228 ["table"] = true,
229 ["utf8"] = true, 229 ["utf8"] = true,
230 -- 230 --
231 ["lanes.core"] = true 231 ["lanes_core"] = true
232} 232}
233-- same structure, but contains only the libraries that the current Lua flavor actually supports 233-- same structure, but contains only the libraries that the current Lua flavor actually supports
234local supported_libs 234local supported_libs
@@ -329,8 +329,8 @@ local process_gen_opt = function(...)
329 error "Libs specification '*' must be used alone" 329 error "Libs specification '*' must be used alone"
330 end 330 end
331 local found = {} 331 local found = {}
332 -- accept lib identifiers followed by an optional question mark 332 -- accept lib identifiers (alphanumeric plus '.-_'), followed by an optional question mark
333 for s, question in string_gmatch(libs, "([%a%d.]+)(%??)") do 333 for s, question in string_gmatch(libs, "([%-%w_.]+)(%??)") do
334 if not valid_libs[s] then 334 if not valid_libs[s] then
335 error("Bad library name: " .. string_format("%q", tostring(s)), 2) 335 error("Bad library name: " .. string_format("%q", tostring(s)), 2)
336 end 336 end
@@ -643,7 +643,7 @@ local configure_timers = function()
643 end 643 end
644 end 644 end
645 end -- timer_body() 645 end -- timer_body()
646 timer_lane = gen("lanes.core,table", { name = "LanesTimer", package = {}, priority = core.max_prio }, timer_body)() 646 timer_lane = gen("lanes_core,table", { name = "LanesTimer", package = {}, priority = core.max_prio }, timer_body)()
647 end -- first_time 647 end -- first_time
648 648
649 ----- 649 -----