Changeset

439:6fc73ad6b1d2

util.table: Add fallback for the Prosody C module
author Kim Alvefur <zash@zash.se>
date Sat, 14 Nov 2020 15:23:08 +0100
parents 436:a9be85b2da17
children 440:14071b3a46df
files libs/table.lua squishy
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libs/table.lua	Sat Nov 14 15:23:08 2020 +0100
@@ -0,0 +1,1 @@
+return {pack = function(...) return {n = select("#", ...); ...} end; create = function() return {} end}
--- a/squishy	Thu Oct 22 15:28:35 2020 +0100
+++ b/squishy	Sat Nov 14 15:23:08 2020 +0100
@@ -4,6 +4,7 @@
 Module "util.encodings"		"libs/encodings.lua"
 Module "util.hashes"		"libs/hashes.lua"
 Module "lib.adhoc"              "libs/adhoc.lib.lua"
+Module "util.table" "libs/table.lua"
 
 -- Prosody libraries
 if not GetOption("prosody") then