lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




Le mer. 15 avr. 2020 à 15:45, Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> a écrit :
Lua 5.4.0 (rc1) is now available for testing at
        http://www.lua.org/work/lua-5.4.0-rc1.tar.gz

The checksums are
        MD5     276c5d873d9358fd82d1a3c372123e38  -
        SHA1    33257f2b5c3fb4966b3a5a67611c1d4aaf72dca8  -

This is the final version of Lua 5.4.0 (rc1).

The main changes in Lua 5.4.0 are listed at
        http://www.lua.org/work/doc/#changes

An updated reference manual is included and also available at
        http://www.lua.org/work/doc

The complete diffs from beta to rc1 are available at
        http://www.lua.org/work/diffs-lua-5.4.0-beta-rc1.html
        http://www.lua.org/work/diffu-lua-5.4.0-beta-rc1.html

A test suite is available at
        http://www.lua.org/work/lua-5.4.0-tests.tar.gz

To build Lua in a common Unix-like platform, just do
        make
The Makefile will guess your platform using uname and build Lua for it.
We welcome feedback on this, which is new, especially more uname targets
with explicit rules and fixes for existing ones.

We also welcome feedback on the listings output by luac -l -l, because
luac has been rewritten to account for the new VM instructions.

All feedback welcome. Thanks.

find in attachment some fixes for minor issues (found with a linter),
and a too big patch in : https://gist.github.com/fperrad/9f7b50e87acdaf9b2c2cadd82f31f1f7

François

--lhf

remove unused macro

diff --git a/src/loadlib.c b/src/loadlib.c
index 56167f6..96a4296 100644
--- a/src/loadlib.c
+++ b/src/loadlib.c
@@ -269,9 +269,6 @@
 #endif
 
 
-#define AUXMARK         "\1"	/* auxiliary mark */
-
-
 /*
 ** return registry.LUA_NOENV as a boolean
 */
diff --git a/src/luac.c b/src/luac.c
index 9417a88..7288432 100644
--- a/src/luac.c
+++ b/src/luac.c
@@ -329,7 +329,6 @@
 
 #define COMMENT		"\t; "
 #define EXTRAARG	GETARG_Ax(code[pc+1])
-#define EXTRAARGC	EXTRAARG*(MAXARG_C+1)
 #define ISK		(isk ? "k" : "")
 
 static void PrintCode(const Proto* f)
-- 

remove extraneous comma

diff --git a/src/lvm.h b/src/lvm.h
index 7103857..d20f85a 100644
--- a/src/lvm.h
+++ b/src/lvm.h
@@ -43,7 +43,7 @@
 typedef enum {
   F2Ieq,  /* no rounding; accepts only integral values */
   F2Ifloor,  /* takes the floor of the number */
-  F2Iceil,  /* takes the ceil of the number */
+  F2Iceil  /* takes the ceil of the number */
 } F2Imod;
 
 
-- 
remove useless include

note: stddef.h could be more useful in lopnames.h

diff --git a/src/lopcodes.c b/src/lopcodes.c
index 4e983e0..c67aa22 100644
--- a/src/lopcodes.c
+++ b/src/lopcodes.c
@@ -10,8 +10,6 @@
 #include "lprefix.h"
 
 
-#include <stddef.h>
-
 #include "lopcodes.h"
 
 
--