Comparison

util/datamanager.lua @ 8555:4f0f5b49bb03

vairious: Add annotation when an empty environment is set [luacheck]
author Kim Alvefur <zash@zash.se>
date Wed, 28 Feb 2018 20:06:26 +0100
parent 8299:756a2a00e7e7
child 9993:02a41315d275
child 10665:69acda92d5a9
comparison
equal deleted inserted replaced
8554:12a68e0d0ecf 8555:4f0f5b49bb03
38 atomic_append = pposix.atomic_append; 38 atomic_append = pposix.atomic_append;
39 ENOENT = pposix.ENOENT or ENOENT; 39 ENOENT = pposix.ENOENT or ENOENT;
40 end); 40 end);
41 41
42 local _ENV = nil; 42 local _ENV = nil;
43 -- luacheck: std none
43 44
44 ---- utils ----- 45 ---- utils -----
45 local encode, decode, store_encode; 46 local encode, decode, store_encode;
46 do 47 do
47 local urlcodes = setmetatable({}, { __index = function (t, k) t[k] = char(tonumber(k, 16)); return t[k]; end }); 48 local urlcodes = setmetatable({}, { __index = function (t, k) t[k] = char(tonumber(k, 16)); return t[k]; end });