Software /
code /
prosody
Comparison
util/datamanager.lua @ 7995:b99404a340fc
util.datamanager: Split long line [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 22 Mar 2017 12:00:21 +0100 |
parent | 7929:4017ea6d2599 |
child | 7996:f4c0fb54e16c |
comparison
equal
deleted
inserted
replaced
7994:3325ac397f17 | 7995:b99404a340fc |
---|---|
22 local type = type; | 22 local type = type; |
23 local t_insert = table.insert; | 23 local t_insert = table.insert; |
24 local t_concat = table.concat; | 24 local t_concat = table.concat; |
25 local envloadfile = require"util.envload".envloadfile; | 25 local envloadfile = require"util.envload".envloadfile; |
26 local serialize = require "util.serialization".serialize; | 26 local serialize = require "util.serialization".serialize; |
27 local path_separator = assert ( package.config:match ( "^([^\n]+)" ) , "package.config not in standard form" ) -- Extract directory seperator from package.config (an undocumented string that comes with lua) | |
28 local lfs = require "lfs"; | 27 local lfs = require "lfs"; |
28 -- Extract directory seperator from package.config (an undocumented string that comes with lua) | |
29 local path_separator = assert ( package.config:match ( "^([^\n]+)" ) , "package.config not in standard form" ) | |
30 | |
29 local prosody = prosody; | 31 local prosody = prosody; |
30 | 32 |
31 local raw_mkdir = lfs.mkdir; | 33 local raw_mkdir = lfs.mkdir; |
32 local function fallocate(f, offset, len) | 34 local function fallocate(f, offset, len) |
33 -- This assumes that current position == offset | 35 -- This assumes that current position == offset |