Source-Changes-HG archive

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

[src/LUA]: src/external/mit/lua/dist Import Lua 5.4.4



details:   https://anonhg.NetBSD.org/src/rev/8fdce1000ba3
branches:  LUA
changeset: 372885:8fdce1000ba3
user:      nikita <nikita%NetBSD.org@localhost>
date:      Mon Jan 02 20:57:28 2023 +0000

description:
Import Lua 5.4.4

diffstat:

 external/mit/lua/dist/Makefile          |    28 +-
 external/mit/lua/dist/README            |     2 +-
 external/mit/lua/dist/doc/contents.html |   109 +-
 external/mit/lua/dist/doc/lua.1         |    95 +-
 external/mit/lua/dist/doc/manual.html   |  3739 +++++++++++++++++++-----------
 external/mit/lua/dist/doc/readme.html   |   117 +-
 external/mit/lua/dist/src/Makefile      |    85 +-
 external/mit/lua/dist/src/lapi.c        |   767 +++--
 external/mit/lua/dist/src/lapi.h        |    31 +-
 external/mit/lua/dist/src/lauxlib.c     |   445 ++-
 external/mit/lua/dist/src/lauxlib.h     |    83 +-
 external/mit/lua/dist/src/lbaselib.c    |   177 +-
 external/mit/lua/dist/src/lcode.c       |  1193 +++++++--
 external/mit/lua/dist/src/lcode.h       |    36 +-
 external/mit/lua/dist/src/lcorolib.c    |   102 +-
 external/mit/lua/dist/src/lctype.c      |    45 +-
 external/mit/lua/dist/src/lctype.h      |    20 +-
 external/mit/lua/dist/src/ldblib.c      |   107 +-
 external/mit/lua/dist/src/ldebug.c      |   585 +++-
 external/mit/lua/dist/src/ldebug.h      |    34 +-
 external/mit/lua/dist/src/ldo.c         |   833 ++++--
 external/mit/lua/dist/src/ldo.h         |    43 +-
 external/mit/lua/dist/src/ldump.c       |   203 +-
 external/mit/lua/dist/src/lfunc.c       |   225 +-
 external/mit/lua/dist/src/lfunc.h       |    51 +-
 external/mit/lua/dist/src/lgc.c         |  1446 ++++++++---
 external/mit/lua/dist/src/lgc.h         |   140 +-
 external/mit/lua/dist/src/linit.c       |     9 +-
 external/mit/lua/dist/src/liolib.c      |   144 +-
 external/mit/lua/dist/src/ljumptab.h    |   114 +
 external/mit/lua/dist/src/llex.c        |   118 +-
 external/mit/lua/dist/src/llex.h        |    14 +-
 external/mit/lua/dist/src/llimits.h     |   124 +-
 external/mit/lua/dist/src/lmathlib.c    |   444 +++-
 external/mit/lua/dist/src/lmem.c        |   179 +-
 external/mit/lua/dist/src/lmem.h        |    74 +-
 external/mit/lua/dist/src/loadlib.c     |   282 +-
 external/mit/lua/dist/src/lobject.c     |   354 +-
 external/mit/lua/dist/src/lobject.h     |   819 ++++--
 external/mit/lua/dist/src/lopcodes.c    |   194 +-
 external/mit/lua/dist/src/lopcodes.h    |   392 ++-
 external/mit/lua/dist/src/lopnames.h    |   105 +
 external/mit/lua/dist/src/loslib.c      |    93 +-
 external/mit/lua/dist/src/lparser.c     |  1004 +++++--
 external/mit/lua/dist/src/lparser.h     |    82 +-
 external/mit/lua/dist/src/lprefix.h     |     6 +-
 external/mit/lua/dist/src/lstate.c      |   247 +-
 external/mit/lua/dist/src/lstate.h      |   247 +-
 external/mit/lua/dist/src/lstring.c     |   137 +-
 external/mit/lua/dist/src/lstring.h     |    24 +-
 external/mit/lua/dist/src/lstrlib.c     |   722 ++++-
 external/mit/lua/dist/src/ltable.c      |   776 ++++--
 external/mit/lua/dist/src/ltable.h      |    32 +-
 external/mit/lua/dist/src/ltablib.c     |    70 +-
 external/mit/lua/dist/src/ltm.c         |   176 +-
 external/mit/lua/dist/src/ltm.h         |    39 +-
 external/mit/lua/dist/src/lua.c         |   500 ++-
 external/mit/lua/dist/src/lua.h         |    68 +-
 external/mit/lua/dist/src/luac.c        |   473 +++-
 external/mit/lua/dist/src/luaconf.h     |   322 +-
 external/mit/lua/dist/src/lualib.h      |    13 +-
 external/mit/lua/dist/src/lundump.c     |   280 +-
 external/mit/lua/dist/src/lundump.h     |    10 +-
 external/mit/lua/dist/src/lutf8lib.c    |   130 +-
 external/mit/lua/dist/src/lvm.c         |  1796 +++++++++-----
 external/mit/lua/dist/src/lvm.h         |    99 +-
 external/mit/lua/dist/src/lzio.c        |     4 +-
 external/mit/lua/dist/src/lzio.h        |     4 +-
 68 files changed, 14166 insertions(+), 7295 deletions(-)

diffs (truncated from 34965 to 300 lines):

diff -r 13563702f006 -r 8fdce1000ba3 external/mit/lua/dist/Makefile
--- a/external/mit/lua/dist/Makefile    Thu Dec 29 09:45:56 2022 +0000
+++ b/external/mit/lua/dist/Makefile    Mon Jan 02 20:57:28 2023 +0000
@@ -4,7 +4,7 @@
 # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
 
 # Your platform. See PLATS for possible values.
-PLAT= none
+PLAT= guess
 
 # Where to install. The installation starts in the src and doc directories,
 # so take care if INSTALL_TOP is not an absolute path. See the local target.
@@ -36,7 +36,7 @@
 # == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE =======
 
 # Convenience platforms targets.
-PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris
+PLATS= guess aix bsd c89 freebsd generic linux linux-readline macosx mingw posix solaris
 
 # What to install.
 TO_BIN= lua luac
@@ -45,17 +45,14 @@
 TO_MAN= lua.1 luac.1
 
 # Lua version and release.
-V= 5.3
+V= 5.4
 R= $V.4
 
 # Targets start here.
 all:   $(PLAT)
 
-$(PLATS) clean:
-       cd src && $(MAKE) $@
-
-test:  dummy
-       src/lua -v
+$(PLATS) help test clean:
+       @cd src && $(MAKE) $@
 
 install: dummy
        cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
@@ -73,15 +70,10 @@
 local:
        $(MAKE) install INSTALL_TOP=../install
 
-none:
-       @echo "Please do 'make PLATFORM' where PLATFORM is one of these:"
-       @echo "   $(PLATS)"
-       @echo "See doc/readme.html for complete instructions."
-
-# make may get confused with test/ and install/
+# make may get confused with install/ if it does not support .PHONY.
 dummy:
 
-# echo config parameters
+# Echo config parameters.
 echo:
        @cd src && $(MAKE) -s echo
        @echo "PLAT= $(PLAT)"
@@ -101,14 +93,14 @@
        @echo "INSTALL_EXEC= $(INSTALL_EXEC)"
        @echo "INSTALL_DATA= $(INSTALL_DATA)"
 
-# echo pkg-config data
+# Echo pkg-config data.
 pc:
        @echo "version=$R"
        @echo "prefix=$(INSTALL_TOP)"
        @echo "libdir=$(INSTALL_LIB)"
        @echo "includedir=$(INSTALL_INC)"
 
-# list targets that do not create files (but not all makes understand .PHONY)
-.PHONY: all $(PLATS) clean test install local none dummy echo pecho lecho
+# Targets that do not create files (not all makes understand .PHONY).
+.PHONY: all $(PLATS) help test clean install uninstall local dummy echo pc
 
 # (end of Makefile)
diff -r 13563702f006 -r 8fdce1000ba3 external/mit/lua/dist/README
--- a/external/mit/lua/dist/README      Thu Dec 29 09:45:56 2022 +0000
+++ b/external/mit/lua/dist/README      Mon Jan 02 20:57:28 2023 +0000
@@ -1,5 +1,5 @@
 
-This is Lua 5.3.5, released on 26 Jun 2018.
+This is Lua 5.4.4, released on 13 Jan 2022.
 
 For installation instructions, license details, and
 further information about Lua, see doc/readme.html.
diff -r 13563702f006 -r 8fdce1000ba3 external/mit/lua/dist/doc/contents.html
--- a/external/mit/lua/dist/doc/contents.html   Thu Dec 29 09:45:56 2022 +0000
+++ b/external/mit/lua/dist/doc/contents.html   Mon Jan 02 20:57:28 2023 +0000
@@ -1,7 +1,7 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <HTML>
 <HEAD>
-<TITLE>Lua 5.3 Reference Manual - contents</TITLE>
+<TITLE>Lua 5.4 Reference Manual - contents</TITLE>
 <LINK REL="stylesheet" TYPE="text/css" HREF="lua.css">
 <LINK REL="stylesheet" TYPE="text/css" HREF="index.css">
 <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=iso-8859-1">
@@ -11,7 +11,7 @@
 
 <H1>
 <A HREF="http://www.lua.org/";><IMG SRC="logo.gif" ALT="Lua"></A>
-Lua 5.3 Reference Manual
+Lua 5.4 Reference Manual
 </H1>
 
 <P>
@@ -32,7 +32,7 @@
 
 <P>
 <SMALL>
-Copyright &copy; 2015&ndash;2018 Lua.org, PUC-Rio.
+Copyright &copy; 2020&ndash;2022 Lua.org, PUC-Rio.
 Freely available under the terms of the
 <A HREF="http://www.lua.org/license.html";>Lua license</A>.
 </SMALL>
@@ -49,8 +49,10 @@
 <LI><A HREF="manual.html#2.4">2.4 &ndash; Metatables and Metamethods</A>
 <LI><A HREF="manual.html#2.5">2.5 &ndash; Garbage Collection</A>
 <UL>
-<LI><A HREF="manual.html#2.5.1">2.5.1 &ndash; Garbage-Collection Metamethods</A>
-<LI><A HREF="manual.html#2.5.2">2.5.2 &ndash; Weak Tables</A>
+<LI><A HREF="manual.html#2.5.1">2.5.1 &ndash; Incremental Garbage Collection</A>
+<LI><A HREF="manual.html#2.5.2">2.5.2 &ndash; Generational Garbage Collection</A>
+<LI><A HREF="manual.html#2.5.3">2.5.3 &ndash; Garbage-Collection Metamethods</A>
+<LI><A HREF="manual.html#2.5.4">2.5.4 &ndash; Weak Tables</A>
 </UL>
 <LI><A HREF="manual.html#2.6">2.6 &ndash; Coroutines</A>
 </UL>
@@ -68,6 +70,7 @@
 <LI><A HREF="manual.html#3.3.5">3.3.5 &ndash; For Statement</A>
 <LI><A HREF="manual.html#3.3.6">3.3.6 &ndash; Function Calls as Statements</A>
 <LI><A HREF="manual.html#3.3.7">3.3.7 &ndash; Local Declarations</A>
+<LI><A HREF="manual.html#3.3.8">3.3.8 &ndash; To-be-closed Variables</A>
 </UL>
 <LI><A HREF="manual.html#3.4">3.4 &ndash; Expressions</A>
 <UL>
@@ -89,14 +92,20 @@
 <LI><A HREF="manual.html#4">4 &ndash; The Application Program Interface</A>
 <UL>
 <LI><A HREF="manual.html#4.1">4.1 &ndash; The Stack</A>
-<LI><A HREF="manual.html#4.2">4.2 &ndash; Stack Size</A>
-<LI><A HREF="manual.html#4.3">4.3 &ndash; Valid and Acceptable Indices</A>
-<LI><A HREF="manual.html#4.4">4.4 &ndash; C Closures</A>
-<LI><A HREF="manual.html#4.5">4.5 &ndash; Registry</A>
-<LI><A HREF="manual.html#4.6">4.6 &ndash; Error Handling in C</A>
-<LI><A HREF="manual.html#4.7">4.7 &ndash; Handling Yields in C</A>
-<LI><A HREF="manual.html#4.8">4.8 &ndash; Functions and Types</A>
-<LI><A HREF="manual.html#4.9">4.9 &ndash; The Debug Interface</A>
+<UL>
+<LI><A HREF="manual.html#4.1.1">4.1.1 &ndash; Stack Size</A>
+<LI><A HREF="manual.html#4.1.2">4.1.2 &ndash; Valid and Acceptable Indices</A>
+<LI><A HREF="manual.html#4.1.3">4.1.3 &ndash; Pointers to strings</A>
+</UL>
+<LI><A HREF="manual.html#4.2">4.2 &ndash; C Closures</A>
+<LI><A HREF="manual.html#4.3">4.3 &ndash; Registry</A>
+<LI><A HREF="manual.html#4.4">4.4 &ndash; Error Handling in C</A>
+<UL>
+<LI><A HREF="manual.html#4.4.1">4.4.1 &ndash; Status Codes</A>
+</UL>
+<LI><A HREF="manual.html#4.5">4.5 &ndash; Handling Yields in C</A>
+<LI><A HREF="manual.html#4.6">4.6 &ndash; Functions and Types</A>
+<LI><A HREF="manual.html#4.7">4.7 &ndash; The Debug Interface</A>
 </UL>
 <P>
 <LI><A HREF="manual.html#5">5 &ndash; The Auxiliary Library</A>
@@ -104,7 +113,7 @@
 <LI><A HREF="manual.html#5.1">5.1 &ndash; Functions and Types</A>
 </UL>
 <P>
-<LI><A HREF="manual.html#6">6 &ndash; Standard Libraries</A>
+<LI><A HREF="manual.html#6">6 &ndash; The Standard Libraries</A>
 <UL>
 <LI><A HREF="manual.html#6.1">6.1 &ndash; Basic Functions</A>
 <LI><A HREF="manual.html#6.2">6.2 &ndash; Coroutine Manipulation</A>
@@ -126,9 +135,9 @@
 <P>
 <LI><A HREF="manual.html#8">8 &ndash; Incompatibilities with the Previous Version</A>
 <UL>
-<LI><A HREF="manual.html#8.1">8.1 &ndash; Changes in the Language</A>
-<LI><A HREF="manual.html#8.2">8.2 &ndash; Changes in the Libraries</A>
-<LI><A HREF="manual.html#8.3">8.3 &ndash; Changes in the API</A>
+<LI><A HREF="manual.html#8.1">8.1 &ndash; Incompatibilities in the Language</A>
+<LI><A HREF="manual.html#8.2">8.2 &ndash; Incompatibilities in the Libraries</A>
+<LI><A HREF="manual.html#8.3">8.3 &ndash; Incompatibilities in the API</A>
 </UL>
 <P>
 <LI><A HREF="manual.html#9">9 &ndash; The Complete Syntax of Lua</A>
@@ -165,10 +174,12 @@
 <A HREF="manual.html#pdf-tonumber">tonumber</A><BR>
 <A HREF="manual.html#pdf-tostring">tostring</A><BR>
 <A HREF="manual.html#pdf-type">type</A><BR>
+<A HREF="manual.html#pdf-warn">warn</A><BR>
 <A HREF="manual.html#pdf-xpcall">xpcall</A><BR>
 
 <P>
 <A HREF="manual.html#6.2">coroutine</A><BR>
+<A HREF="manual.html#pdf-coroutine.close">coroutine.close</A><BR>
 <A HREF="manual.html#pdf-coroutine.create">coroutine.create</A><BR>
 <A HREF="manual.html#pdf-coroutine.isyieldable">coroutine.isyieldable</A><BR>
 <A HREF="manual.html#pdf-coroutine.resume">coroutine.resume</A><BR>
@@ -318,14 +329,46 @@
 <A HREF="manual.html#pdf-utf8.len">utf8.len</A><BR>
 <A HREF="manual.html#pdf-utf8.offset">utf8.offset</A><BR>
 
+<H3><A NAME="metamethods">metamethods</A></H3>
+<P>
+<A HREF="manual.html#2.4">__add</A><BR>
+<A HREF="manual.html#2.4">__band</A><BR>
+<A HREF="manual.html#2.4">__bnot</A><BR>
+<A HREF="manual.html#2.4">__bor</A><BR>
+<A HREF="manual.html#2.4">__bxor</A><BR>
+<A HREF="manual.html#2.4">__call</A><BR>
+<A HREF="manual.html#3.3.8">__close</A><BR>
+<A HREF="manual.html#2.4">__concat</A><BR>
+<A HREF="manual.html#2.4">__div</A><BR>
+<A HREF="manual.html#2.4">__eq</A><BR>
+<A HREF="manual.html#2.5.3">__gc</A><BR>
+<A HREF="manual.html#2.4">__idiv</A><BR>
+<A HREF="manual.html#2.4">__index</A><BR>
+<A HREF="manual.html#2.4">__le</A><BR>
+<A HREF="manual.html#2.4">__len</A><BR>
+<A HREF="manual.html#2.4">__lt</A><BR>
+<A HREF="manual.html#pdf-getmetatable">__metatable</A><BR>
+<A HREF="manual.html#2.4">__mod</A><BR>
+<A HREF="manual.html#2.5.4">__mode</A><BR>
+<A HREF="manual.html#2.4">__mul</A><BR>
+<A HREF="manual.html#luaL_newmetatable">__name</A><BR>
+<A HREF="manual.html#2.4">__newindex</A><BR>
+<A HREF="manual.html#pdf-pairs">__pairs</A><BR>
+<A HREF="manual.html#2.4">__pow</A><BR>
+<A HREF="manual.html#2.4">__shl</A><BR>
+<A HREF="manual.html#2.4">__shr</A><BR>
+<A HREF="manual.html#2.4">__sub</A><BR>
+<A HREF="manual.html#pdf-tostring">__tostring</A><BR>
+<A HREF="manual.html#2.4">__unm</A><BR>
+
 <H3><A NAME="env">environment<BR>variables</A></H3>
 <P>
 <A HREF="manual.html#pdf-LUA_CPATH">LUA_CPATH</A><BR>
-<A HREF="manual.html#pdf-LUA_CPATH_5_3">LUA_CPATH_5_3</A><BR>
+<A HREF="manual.html#pdf-LUA_CPATH_5_4">LUA_CPATH_5_4</A><BR>
 <A HREF="manual.html#pdf-LUA_INIT">LUA_INIT</A><BR>
-<A HREF="manual.html#pdf-LUA_INIT_5_3">LUA_INIT_5_3</A><BR>
+<A HREF="manual.html#pdf-LUA_INIT_5_4">LUA_INIT_5_4</A><BR>
 <A HREF="manual.html#pdf-LUA_PATH">LUA_PATH</A><BR>
-<A HREF="manual.html#pdf-LUA_PATH_5_3">LUA_PATH_5_3</A><BR>
+<A HREF="manual.html#pdf-LUA_PATH_5_4">LUA_PATH_5_4</A><BR>
 
 </TD>
 <TD>
@@ -342,6 +385,7 @@
 <A HREF="manual.html#lua_Reader">lua_Reader</A><BR>
 <A HREF="manual.html#lua_State">lua_State</A><BR>
 <A HREF="manual.html#lua_Unsigned">lua_Unsigned</A><BR>
+<A HREF="manual.html#lua_WarnFunction">lua_WarnFunction</A><BR>
 <A HREF="manual.html#lua_Writer">lua_Writer</A><BR>
 
 <P>
@@ -352,6 +396,7 @@
 <A HREF="manual.html#lua_callk">lua_callk</A><BR>
 <A HREF="manual.html#lua_checkstack">lua_checkstack</A><BR>
 <A HREF="manual.html#lua_close">lua_close</A><BR>
+<A HREF="manual.html#lua_closeslot">lua_closeslot</A><BR>
 <A HREF="manual.html#lua_compare">lua_compare</A><BR>
 <A HREF="manual.html#lua_concat">lua_concat</A><BR>
 <A HREF="manual.html#lua_copy">lua_copy</A><BR>
@@ -368,13 +413,13 @@
 <A HREF="manual.html#lua_gethookmask">lua_gethookmask</A><BR>
 <A HREF="manual.html#lua_geti">lua_geti</A><BR>
 <A HREF="manual.html#lua_getinfo">lua_getinfo</A><BR>
+<A HREF="manual.html#lua_getiuservalue">lua_getiuservalue</A><BR>
 <A HREF="manual.html#lua_getlocal">lua_getlocal</A><BR>
 <A HREF="manual.html#lua_getmetatable">lua_getmetatable</A><BR>
 <A HREF="manual.html#lua_getstack">lua_getstack</A><BR>
 <A HREF="manual.html#lua_gettable">lua_gettable</A><BR>
 <A HREF="manual.html#lua_gettop">lua_gettop</A><BR>
 <A HREF="manual.html#lua_getupvalue">lua_getupvalue</A><BR>
-<A HREF="manual.html#lua_getuservalue">lua_getuservalue</A><BR>
 <A HREF="manual.html#lua_insert">lua_insert</A><BR>
 <A HREF="manual.html#lua_isboolean">lua_isboolean</A><BR>
 <A HREF="manual.html#lua_iscfunction">lua_iscfunction</A><BR>
@@ -395,7 +440,7 @@
 <A HREF="manual.html#lua_newstate">lua_newstate</A><BR>
 <A HREF="manual.html#lua_newtable">lua_newtable</A><BR>
 <A HREF="manual.html#lua_newthread">lua_newthread</A><BR>
-<A HREF="manual.html#lua_newuserdata">lua_newuserdata</A><BR>
+<A HREF="manual.html#lua_newuserdatauv">lua_newuserdatauv</A><BR>
 <A HREF="manual.html#lua_next">lua_next</A><BR>
 <A HREF="manual.html#lua_numbertointeger">lua_numbertointeger</A><BR>
 <A HREF="manual.html#lua_pcall">lua_pcall</A><BR>
@@ -427,6 +472,7 @@
 <A HREF="manual.html#lua_register">lua_register</A><BR>
 <A HREF="manual.html#lua_remove">lua_remove</A><BR>
 <A HREF="manual.html#lua_replace">lua_replace</A><BR>
+<A HREF="manual.html#lua_resetthread">lua_resetthread</A><BR>
 <A HREF="manual.html#lua_resume">lua_resume</A><BR>
 <A HREF="manual.html#lua_rotate">lua_rotate</A><BR>



Home | Main Index | Thread Index | Old Index