[Commits] [wesnoth/wesnoth] af5705: Upgrade to Lua 5.3.4

GitHub noreply at github.com
Tue Oct 10 05:04:09 UTC 2017


  Branch: refs/heads/lua_5.3.4
  Home:   https://github.com/wesnoth/wesnoth
  Commit: af57057799de74493a9e3789f2602288cad3c283
      https://github.com/wesnoth/wesnoth/commit/af57057799de74493a9e3789f2602288cad3c283
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M src/lua/COPYRIGHT
    M src/lua/lauxlib.cpp
    M src/lua/lauxlib.h
    M src/lua/lbaselib.cpp
    M src/lua/lcode.cpp
    M src/lua/ldebug.cpp
    M src/lua/ldo.cpp
    M src/lua/lgc.cpp
    M src/lua/liolib.cpp
    M src/lua/lmathlib.cpp
    M src/lua/loadlib.cpp
    M src/lua/lobject.cpp
    M src/lua/lobject.h
    M src/lua/lopcodes.h
    M src/lua/loslib.cpp
    M src/lua/lparser.cpp
    M src/lua/lstate.h
    M src/lua/lstrlib.cpp
    M src/lua/ltable.cpp
    M src/lua/ltable.h
    M src/lua/ltm.cpp
    M src/lua/lua.h
    M src/lua/luaconf.h
    M src/lua/lualib.h
    M src/lua/lutf8lib.cpp
    M src/lua/lvm.h

  Log Message:
  -----------
  Upgrade to Lua 5.3.4


  Commit: 6d25c53d1bb70e4056513bce12ae7b6e030859ae
      https://github.com/wesnoth/wesnoth/commit/6d25c53d1bb70e4056513bce12ae7b6e030859ae
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M src/lua/lparser.cpp

  Log Message:
  -----------
  Apply Lua.org patch

Wrong code generated for a 'goto' followed by a label inside an 'if'.

reported by 云风 on 13 Apr 2017. existed since 5.2.

Example:
    See https://www.lua.org/bugs.html#5.3.4-1.


  Commit: 8a5b0d339d1f8875499c9c6e62cab93e80b5c5b4
      https://github.com/wesnoth/wesnoth/commit/8a5b0d339d1f8875499c9c6e62cab93e80b5c5b4
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M src/lua/ldebug.cpp

  Log Message:
  -----------
  Apply Lua.org patch

Lua does not check GC when creating error messages.

reported by Viacheslav Usov on 06 Jul 2017. existed since 5.3.2.

Example:
    See https://www.lua.org/bugs.html#5.3.4-4.


  Commit: 3347bd096a26845b7b855cd1b3691facde142f11
      https://github.com/wesnoth/wesnoth/commit/3347bd096a26845b7b855cd1b3691facde142f11
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M src/lua/lgc.cpp

  Log Message:
  -----------
  Apply Lua.org patch

Dead keys with nil values can stay in weak tables.

reported by 云风 Cloud Wu on 15 Aug 2017. existed since 5.2.

Example:
    See https://www.lua.org/bugs.html#5.3.4-5.


  Commit: 8862f2a9c183e7e7b1b44458eaa159e32c486571
      https://github.com/wesnoth/wesnoth/commit/8862f2a9c183e7e7b1b44458eaa159e32c486571
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M src/wesnoth_lua_config.md

  Log Message:
  -----------
  Updated Lua update guide

* Fixed a few typos
* Updated the referenced version to 5.3.4.
* Updated build system-related instructions for 5b29805554178e66fcdc97693cfcb110cffc27ac.


  Commit: 62ef37a2174c56645bd3e6345ffea8ee2289e544
      https://github.com/wesnoth/wesnoth/commit/62ef37a2174c56645bd3e6345ffea8ee2289e544
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M changelog

  Log Message:
  -----------
  Updated changelog for Lua upgrade


  Commit: 0141c8e77351d48748117d77d53343611673d10c
      https://github.com/wesnoth/wesnoth/commit/0141c8e77351d48748117d77d53343611673d10c
  Author: Charles Dang <exodia339 at gmail.com>
  Date:   2017-10-10 (Tue, 10 Oct 2017)

  Changed paths:
    M src/lua/luaconf.h

  Log Message:
  -----------
  Force static value for LUAL_BUFFERSIZE

In Lua 5.3.3, LUAL_BUFFERSIZE always equaled the constant since LUA_FLOAT_LONGDOUBLE was always defined.
This check changed in 5.3.4 and the alternate path was being used for LUAL_BUFFERSIZE and triggering
old-style cast warnings in Scons + GCC. Hopefully this gets fixed for 5.3.5.

The following patch constitutes the changes (though they were applied by hand):

*** luaconf.h.old       2017-10-09 23:38:22.641645801 -0500
--- luaconf.h   2017-10-09 23:38:56.548577911 -0500
***************
*** 748,758 ****
  ** smaller buffer would force a memory allocation for each call to
  ** 'string.format'.)
  */
- #if LUA_FLOAT_TYPE == LUA_FLOAT_LONGDOUBLE
  #define LUAL_BUFFERSIZE               8192
- #else
- #define LUAL_BUFFERSIZE   ((int)(0x80 * sizeof(void*) * sizeof(lua_Integer)))
- #endif

  /* }================================================================== */

--- 748,754 ----


Compare: https://github.com/wesnoth/wesnoth/compare/413897a10380...0141c8e77351


More information about the Commits mailing list