webmcp

changeset 225:cd7fce06440d

Initialize listeners list in framework/bin/mcp.lua
author jbe
date Fri Feb 27 22:26:12 2015 +0100 (2015-02-27)
parents 9fcdec58aa31
children 17baf126ea88
files Makefile.options framework/bin/mcp.lua
line diff
     1.1 --- a/Makefile.options	Fri Feb 27 22:18:52 2015 +0100
     1.2 +++ b/Makefile.options	Fri Feb 27 22:26:12 2015 +0100
     1.3 @@ -8,8 +8,8 @@
     1.4  SLIB_EXT = so
     1.5  
     1.6  # Lua binaries
     1.7 -LUA_BIN = lua
     1.8 -LUAC_BIN = luac
     1.9 +LUA_BIN = lua52
    1.10 +LUAC_BIN = luac52
    1.11  
    1.12  # C compiler flags
    1.13  # TODO: check alternatives to -D_GNU_SOURCE -fPIC
     2.1 --- a/framework/bin/mcp.lua	Fri Feb 27 22:18:52 2015 +0100
     2.2 +++ b/framework/bin/mcp.lua	Fri Feb 27 22:26:12 2015 +0100
     2.3 @@ -166,7 +166,7 @@
     2.4  
     2.5  -- replace Moonbridge listen function
     2.6  local moonbridge_listen = listen
     2.7 -local listeners
     2.8 +local listeners = {}
     2.9  function listen(args)
    2.10    listeners[#listeners+1] = args
    2.11  end

Impressum / About Us