Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update LUA from v5.2 to v5.4 #2524

Merged
merged 11 commits into from
Sep 22, 2024
Merged

Conversation

jmichelp
Copy link
Contributor

Many changes needed to be made which are kept in individual commits:

  • Update bundled library to LUA 5.4.7
  • Update build scripts and CI workflow to use liblua5.4 (system)
  • Update lualibs/ansicolors.lua which was written as a lua5.1 module
  • Update lualibs/dkjson.lua to a more recent version, also adding support to utf-8
  • Patch existing LUA scripts to use table.unpack() instead of unpack()
  • Regenerate SWIG wrapper
  • Remove use of deprecated lua_checkunsigned() and luaL_pushunsigned() in client/src/scripting.c to use the APIs
  • Backport LUA bit32 core module which has been deprecated in favor of native support for bitwise operations (but they also moved from 32bit to 64bit integers at the same time!)

There's no unsigned anymore, just integers.
Many exisiting LUA scripts are using bit32 which has been removed
in LUA5.4 in favor of native language support of bitwise operations.
Yet, it's easier to backport this module rather than patching all the
existing LUA scripts because most of them can't be tested.
@jmichelp
Copy link
Contributor Author

Sorry, this is a long PR. But that's the minimal set to make sure things are running "as before"

@iceman1001 iceman1001 merged commit 2b1a71b into RfidResearchGroup:master Sep 22, 2024
12 checks passed
@iceman1001
Copy link
Collaborator

Wow!!!

lets see how much we break!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants