webmcp

diff libraries/mondelefant/mondelefant_atom_connector.lua @ 64:3d43a5cf17c1

Compatibility with Lua 5.2
author jbe
date Sun Apr 15 16:04:33 2012 +0200 (2012-04-15)
parents 985024b16520
children bbfbbddf13ad
line diff
     1.1 --- a/libraries/mondelefant/mondelefant_atom_connector.lua	Tue Apr 03 00:56:02 2012 +0200
     1.2 +++ b/libraries/mondelefant/mondelefant_atom_connector.lua	Sun Apr 15 16:04:33 2012 +0200
     1.3 @@ -3,45 +3,36 @@
     1.4  local _G             = _G
     1.5  local _VERSION       = _VERSION
     1.6  local assert         = assert
     1.7 -local collectgarbage = collectgarbage
     1.8 -local dofile         = dofile
     1.9  local error          = error
    1.10 -local getfenv        = getfenv
    1.11  local getmetatable   = getmetatable
    1.12  local ipairs         = ipairs
    1.13 -local load           = load
    1.14 -local loadfile       = loadfile
    1.15 -local loadstring     = loadstring
    1.16 -local module         = module
    1.17  local next           = next
    1.18  local pairs          = pairs
    1.19 -local pcall          = pcall
    1.20  local print          = print
    1.21  local rawequal       = rawequal
    1.22  local rawget         = rawget
    1.23 +local rawlen         = rawlen
    1.24  local rawset         = rawset
    1.25 -local require        = require
    1.26  local select         = select
    1.27 -local setfenv        = setfenv
    1.28  local setmetatable   = setmetatable
    1.29  local tonumber       = tonumber
    1.30  local tostring       = tostring
    1.31  local type           = type
    1.32 -local unpack         = unpack
    1.33 -local xpcall         = xpcall
    1.34  
    1.35 -local coroutine = coroutine
    1.36 -local debug     = debug
    1.37 -local io        = io
    1.38  local math      = math
    1.39 -local os        = os
    1.40 -local package   = package
    1.41  local string    = string
    1.42 +local table     = table
    1.43  
    1.44  local mondelefant = require("mondelefant")
    1.45  local atom        = require("atom")
    1.46  
    1.47 -module(...)
    1.48 +local _M = {}
    1.49 +if _ENV then
    1.50 +  _ENV = _M
    1.51 +else
    1.52 +  _G[...] = _M
    1.53 +  setfenv(1, _M)
    1.54 +end
    1.55  
    1.56  
    1.57  input_converters = setmetatable({}, { __mode = "k" })
    1.58 @@ -179,6 +170,8 @@
    1.59    end
    1.60  end
    1.61  
    1.62 +return _M
    1.63 +
    1.64  
    1.65  --[[
    1.66  

Impressum / About Us