Lua Compat 5.3 Versions Save

Compatibility module providing Lua-5.3-style APIs for Lua 5.2 and 5.1

v0.9

3 years ago

Ninth release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.

Changes since v0.8:

  • Added bit32 library compatibility module.

v0.8

3 years ago

Eighth release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.

Changes since v0.7: None, but Lua 5.4 is supported.

v0.7

5 years ago

Seventh release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.

Changes since v0.6:

  • C-API:
    • stricter lua_tointeger(x) function
    • compilation fix for compilers that do C11 by default and don't support strerror_r
  • Lua: no changes other than the compilation fix mentioned above

v0.6

6 years ago

Sixth release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.

Changes since v0.5:

  • C-API:
  • Add from parameter to lua_resume
  • Add LUA_FILEHANDLE and luaL_Stream (partial)
  • Add mode parameter to lua_load
  • Add luaL_bufferx, luaL_loadfilex`
  • Add LUA_ERRGCMM
  • Lua: no changes.

v0.5

6 years ago

Fifth release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.

Changes since v0.4:

  • Lua:
  • Update backports of utf8, table, and string packing modules to Lua 5.3.4
  • C-API:
  • Fix compilation issue with Lua 5.3.0 and 5.3.1.
  • Fix return values of lua_push(l)string

v0.4

6 years ago

Fourth release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.

Changes since v0.3:

  • C API:
  • Make it compile with latest LuaJIT 2.1 version which provides 5.2+ C API functions on its own
  • luaL_tolstring respects __name metafield
  • Fix lua_len and luaL_len to use lua_Integer
  • Fix loadstring for Lua 5.1
  • Fix return code of os.execute on Windows

v0.3

8 years ago

Third release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.

Changes since v0.2:

  • Lua:
  • Compress decimal escape sequences in string.format("%q", ...).
  • assert() can handle non-string errors.
  • Make '*' optional in io.lines(), io.read(), file:lines(), and file:read().
  • C API:
  • luaL_newmetatable() sets __name.
  • luaL_checkstack() accepts NULL error message.
  • Add luaL_execresult().
  • Compiles as C or C++ now.

v0.2

9 years ago

Second release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.

Main change from the previous version is the split of the compat53 Lua module into two modules. The new compat53.module can be used by module/scripts authors without interfering with other modules (the global environment and all standard libraries are unmodified) by setting it as a custom environment.

v0.1

9 years ago

First release of Compat-5.3, a Lua module and a set of C files which provide (most of) the API of Lua 5.3 (both Lua functions and C API) for projects using Lua 5.1 or Lua 5.2.

Included in this release:

  • c-api/compat-5.3.h and c-api/compat-5.3.c which can be added to C projects and provide the new Lua 5.3 C API
  • Lua module compat53 which adds/updates Lua standard functions, to make the Lua standard libraries as close to Lua 5.3 as possible.
  • C module compat53.utf8 (backported from Lua 5.3, automatically loaded by compat53) which provides the new utf8 module
  • C module compat53.table (backported from Lua 5.3, automatically loaded by compat53) which provides the updated table functions
  • C module compat53.string (backported from Lua 5.3, automatically loaded by compat53) which provides the string packing functions of Lua 5.3