Feature #1431 ยป 0090-Update-included-lua-to-version-5.4.8.patch
| dependencies/lua-5.4/README | ||
|---|---|---|
| This is Lua 5.4.7, released on 13 Jun 2024. | ||
| This is Lua 5.4.8, released on 21 May 2025. | ||
| For installation instructions, license details, and | ||
| further information about Lua, see doc/readme.html. | ||
| dependencies/lua-5.4/Version.txt | ||
|---|---|---|
| Sources here are from lua-5.4.7 | ||
| (http://www.lua.org/ftp/lua-5.4.7.tar.gz) | ||
| Sources here are from lua-5.4.8 | ||
| (http://www.lua.org/ftp/lua-5.4.8.tar.gz) | ||
| Upstream bug fixes from https://www.lua.org/bugs.html applied: | ||
| 2, 3, 5, 6, 7, 8 | ||
| Upstream bug fixes not applicable to our tree: | ||
| 1 | ||
| Not entire lua distribution directory hierarchy is included here, and | ||
| some files needed for Freeciv usage have been added. | ||
| dependencies/lua-5.4/doc/readme.html | ||
|---|---|---|
| <OL> | ||
| <LI> | ||
| Open a terminal window and move to | ||
| the top-level directory, which is named <TT>lua-5.4.7</TT>. | ||
| the top-level directory, which is named <TT>lua-5.4.8</TT>. | ||
| The <TT>Makefile</TT> there controls both the build process and the installation process. | ||
| <P> | ||
| <LI> | ||
| ... | ... | |
| <A HREF="https://www.lua.org/license.html">license page</A>. | ||
| <BLOCKQUOTE STYLE="padding-bottom: 0em"> | ||
| Copyright © 1994–2024 Lua.org, PUC-Rio. | ||
| Copyright © 1994–2025 Lua.org, PUC-Rio. | ||
| <P> | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| ... | ... | |
| <P CLASS="footer"> | ||
| Last update: | ||
| Wed May  8 21:56:16 UTC 2024 | ||
| Wed May 21 21:12:01 UTC 2025 | ||
| </P> | ||
| <!-- | ||
| Last change: revised for Lua 5.4.7 | ||
| Last change: revised for Lua 5.4.8 | ||
| --> | ||
| </BODY> | ||
| dependencies/lua-5.4/src/lapi.c | ||
|---|---|---|
| LUA_API void *lua_newuserdatauv (lua_State *L, size_t size, int nuvalue) { | ||
|   Udata *u; | ||
|   lua_lock(L); | ||
|   api_check(L, 0 <= nuvalue && nuvalue < USHRT_MAX, "invalid value"); | ||
|   api_check(L, 0 <= nuvalue && nuvalue < SHRT_MAX, "invalid value"); | ||
|   u = luaS_newudata(L, size, nuvalue); | ||
|   setuvalue(L, s2v(L->top.p), u); | ||
|   api_incr_top(L); | ||
| dependencies/lua-5.4/src/ldo.c | ||
|---|---|---|
|   else {  /* thread has no error handler */ | ||
|     global_State *g = G(L); | ||
|     errcode = luaE_resetthread(L, errcode);  /* close all upvalues */ | ||
|     L->status = errcode; | ||
|     if (g->mainthread->errorJmp) {  /* main thread has a handler? */ | ||
|       setobjs2s(L, g->mainthread->top.p++, L->top.p - 1);  /* copy error obj. */ | ||
|       luaD_throw(g->mainthread, errcode);  /* re-throw in main thread */ | ||
| dependencies/lua-5.4/src/lparser.c | ||
|---|---|---|
|   FuncState *fs = ls->fs; | ||
|   int reg = ls->fs->freereg; | ||
|   expdesc tab, key, val; | ||
|   if (ls->t.token == TK_NAME) { | ||
|     checklimit(fs, cc->nh, MAX_INT, "items in a constructor"); | ||
|   if (ls->t.token == TK_NAME) | ||
|     codename(ls, &key); | ||
|   } | ||
|   else  /* ls->t.token == '[' */ | ||
|     yindex(ls, &key); | ||
|   checklimit(fs, cc->nh, MAX_INT, "items in a constructor"); | ||
|   cc->nh++; | ||
|   checknext(ls, '='); | ||
|   tab = *cc->t; | ||
| dependencies/lua-5.4/src/lua.h | ||
|---|---|---|
| #define LUA_VERSION_MAJOR	"5" | ||
| #define LUA_VERSION_MINOR	"4" | ||
| #define LUA_VERSION_RELEASE	"7" | ||
| #define LUA_VERSION_RELEASE	"8" | ||
| #define LUA_VERSION_NUM			504 | ||
| #define LUA_VERSION_RELEASE_NUM		(LUA_VERSION_NUM * 100 + 7) | ||
| #define LUA_VERSION_RELEASE_NUM		(LUA_VERSION_NUM * 100 + 8) | ||
| #define LUA_VERSION	"Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR | ||
| #define LUA_RELEASE	LUA_VERSION "." LUA_VERSION_RELEASE | ||
| #define LUA_COPYRIGHT	LUA_RELEASE "  Copyright (C) 1994-2024 Lua.org, PUC-Rio" | ||
| #define LUA_COPYRIGHT	LUA_RELEASE "  Copyright (C) 1994-2025 Lua.org, PUC-Rio" | ||
| #define LUA_AUTHORS	"R. Ierusalimschy, L. H. de Figueiredo, W. Celes" | ||
| ... | ... | |
| /****************************************************************************** | ||
| * Copyright (C) 1994-2024 Lua.org, PUC-Rio. | ||
| * Copyright (C) 1994-2025 Lua.org, PUC-Rio. | ||
| * | ||
| * Permission is hereby granted, free of charge, to any person obtaining | ||
| * a copy of this software and associated documentation files (the | ||