3CZRJ62SHHEKNJVO246BWREJBPM7N6R23CNRIDLT5EADXTGCBEQAC
CLZLK7WKE3IKXV6M3PNCDNYQRWO3Y72PEOJYPFAQ7EUJTOWOMA6AC
LERQ7VFMHFRTQ6PXQFSOENX6WZ7GSBBMAAGGQJ7MX6X3FHAK6ESAC
3IN4FOIJ7IWMWAM2SCGUKIM2DR3B6U2MTO24CF25CTKYNSCPUBLQC
35MYQY7XPTIH2PLN6E7BUEU2LOZZ2VTJJJLUJY4EPECVJBMFNJWQC
R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC
KKMFQDR43ZWVCDRHQLWWX3FCWCFA3ZSXYOBRJNPHUQZR2XPKWULAC
SW7BSBMJZLUDRMHO2HMCHQW6PPGCEBL4JSDTAHVYPCZLBEKY54XQC
FTE66WVEMSE7662F7B5I5BHMGRX76NJEO5V4X6RDUMI5IKLYXIAQC
L5XCYDKRZJ4WXDEI6IL2RW63B3VRE6NPP5DW4HVU3CHCMCZEFLIAC
JOPVPUSAMMU6RFVDQR4NJC4GNNUFB7GPKVH7OS5FKCYS5QZ53VLQC
elseif line.data:match('%[ u250c') then
local section_name = line.data:match('u250c%s*(.*)')
elseif line.data:match('%] u2518') then
local section_name = line.data:match('] u2518%s*(.*)')
if array.find(Section_stack, function(x) return x.name == section_name end) then
while table.remove(Section_stack).name ~= section_name do
--
end
line.section_end = true
line.section_name = section_name
line.data = nil
end
line.section_stack = table.shallowcopy(Section_stack)
else
-- string
line.section_stack = table.shallowcopy(Section_stack)
end
else
line.section_stack = {}
end
end
end
function table.shallowcopy(x)
return {unpack(x)}
table.insert(Section_stack, {name=section_name})
line.section_begin = true
line.section_name = section_name
line.data = nil
line.section_stack = table.shallowcopy(Section_stack) -- as it is at the beginning
-- I'd like to use the unicode character \u{250c} here, but it doesn't work
-- in OpenBSD.
log(stack_frame_index, '[ u250c ' .. name)
-- I'd like to use the unicode character \u{2518} here, but it doesn't work
-- in OpenBSD.
log(stack_frame_index, '] u2518 ' .. name)
end
function log_new(name, stack_frame_index)
if stack_frame_index == nil then
stack_frame_index = 4
end
log_end(name, stack_frame_index)
log_start(name, stack_frame_index)
end
end
function log_end(name, stack_frame_index)
if stack_frame_index == nil then
stack_frame_index = 3
end