comparison util/serialization.lua @ 12975:d10957394a3c

util: Prefix module imports with prosody namespace
author Kim Alvefur <zash@zash.se>
date Fri, 17 Mar 2023 16:23:16 +0100
parents 8815d3090928
children 03f1509a6105
comparison
equal deleted inserted replaced
12974:ba409c67353b 12975:d10957394a3c
14 local s_rep = string.rep; 14 local s_rep = string.rep;
15 local s_char = string.char; 15 local s_char = string.char;
16 local s_match = string.match; 16 local s_match = string.match;
17 local t_concat = table.concat; 17 local t_concat = table.concat;
18 18
19 local to_hex = require "util.hex".to; 19 local to_hex = require "prosody.util.hex".to;
20 20
21 local pcall = pcall; 21 local pcall = pcall;
22 local envload = require"util.envload".envload; 22 local envload = require"prosody.util.envload".envload;
23 23
24 if not math.type then 24 if not math.type then
25 require "util.mathcompat" 25 require "prosody.util.mathcompat"
26 end 26 end
27 27
28 local pos_inf, neg_inf = math.huge, -math.huge; 28 local pos_inf, neg_inf = math.huge, -math.huge;
29 local m_type = math.type; 29 local m_type = math.type;
30 30