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.work Import Lua 5.4.4



details:   https://anonhg.NetBSD.org/src/rev/13563702f006
branches:  LUA
changeset: 372833:13563702f006
user:      nikita <nikita%NetBSD.org@localhost>
date:      Thu Dec 29 09:45:56 2022 +0000

description:
Import Lua 5.4.4

diffstat:

 external/mit/lua/dist.work/Makefile                    |    106 +
 external/mit/lua/dist.work/README                      |      6 +
 external/mit/lua/dist.work/doc/contents.html           |    674 +
 external/mit/lua/dist.work/doc/index.css               |     21 +
 external/mit/lua/dist.work/doc/logo.gif                |    Bin 
 external/mit/lua/dist.work/doc/lua.1                   |    151 +
 external/mit/lua/dist.work/doc/lua.css                 |    161 +
 external/mit/lua/dist.work/doc/luac.1                  |    120 +
 external/mit/lua/dist.work/doc/manual.css              |     21 +
 external/mit/lua/dist.work/doc/manual.html             |  11959 +++++++++++++++
 external/mit/lua/dist.work/doc/osi-certified-72x60.png |    Bin 
 external/mit/lua/dist.work/doc/readme.html             |    340 +
 external/mit/lua/dist.work/src/Makefile                |    222 +
 external/mit/lua/dist.work/src/lapi.c                  |   1468 +
 external/mit/lua/dist.work/src/lapi.h                  |     51 +
 external/mit/lua/dist.work/src/lauxlib.c               |   1108 +
 external/mit/lua/dist.work/src/lauxlib.h               |    303 +
 external/mit/lua/dist.work/src/lbaselib.c              |    551 +
 external/mit/lua/dist.work/src/lcode.c                 |   1834 ++
 external/mit/lua/dist.work/src/lcode.h                 |    106 +
 external/mit/lua/dist.work/src/lcorolib.c              |    212 +
 external/mit/lua/dist.work/src/lctype.c                |     66 +
 external/mit/lua/dist.work/src/lctype.h                |    103 +
 external/mit/lua/dist.work/src/ldblib.c                |    485 +
 external/mit/lua/dist.work/src/ldebug.c                |    920 +
 external/mit/lua/dist.work/src/ldebug.h                |     65 +
 external/mit/lua/dist.work/src/ldo.c                   |    999 +
 external/mit/lua/dist.work/src/ldo.h                   |     81 +
 external/mit/lua/dist.work/src/ldump.c                 |    228 +
 external/mit/lua/dist.work/src/lfunc.c                 |    296 +
 external/mit/lua/dist.work/src/lfunc.h                 |     66 +
 external/mit/lua/dist.work/src/lgc.c                   |   1733 ++
 external/mit/lua/dist.work/src/lgc.h                   |    201 +
 external/mit/lua/dist.work/src/linit.c                 |     67 +
 external/mit/lua/dist.work/src/liolib.c                |    830 +
 external/mit/lua/dist.work/src/ljumptab.h              |    114 +
 external/mit/lua/dist.work/src/llex.c                  |    583 +
 external/mit/lua/dist.work/src/llex.h                  |     93 +
 external/mit/lua/dist.work/src/llimits.h               |    369 +
 external/mit/lua/dist.work/src/lmathlib.c              |    766 +
 external/mit/lua/dist.work/src/lmem.c                  |    203 +
 external/mit/lua/dist.work/src/lmem.h                  |     95 +
 external/mit/lua/dist.work/src/loadlib.c               |    764 +
 external/mit/lua/dist.work/src/lobject.c               |    594 +
 external/mit/lua/dist.work/src/lobject.h               |    802 +
 external/mit/lua/dist.work/src/lopcodes.c              |    106 +
 external/mit/lua/dist.work/src/lopcodes.h              |    407 +
 external/mit/lua/dist.work/src/lopnames.h              |    105 +
 external/mit/lua/dist.work/src/loslib.c                |    432 +
 external/mit/lua/dist.work/src/lparser.c               |   1968 ++
 external/mit/lua/dist.work/src/lparser.h               |    173 +
 external/mit/lua/dist.work/src/lprefix.h               |     47 +
 external/mit/lua/dist.work/src/lstate.c                |    442 +
 external/mit/lua/dist.work/src/lstate.h                |    406 +
 external/mit/lua/dist.work/src/lstring.c               |    275 +
 external/mit/lua/dist.work/src/lstring.h               |     59 +
 external/mit/lua/dist.work/src/lstrlib.c               |   1876 ++
 external/mit/lua/dist.work/src/ltable.c                |    982 +
 external/mit/lua/dist.work/src/ltable.h                |     68 +
 external/mit/lua/dist.work/src/ltablib.c               |    432 +
 external/mit/lua/dist.work/src/ltm.c                   |    273 +
 external/mit/lua/dist.work/src/ltm.h                   |    105 +
 external/mit/lua/dist.work/src/lua.c                   |    668 +
 external/mit/lua/dist.work/src/lua.h                   |    520 +
 external/mit/lua/dist.work/src/lua.hpp                 |      9 +
 external/mit/lua/dist.work/src/luac.c                  |    727 +
 external/mit/lua/dist.work/src/luaconf.h               |    788 +
 external/mit/lua/dist.work/src/lualib.h                |     54 +
 external/mit/lua/dist.work/src/lundump.c               |    335 +
 external/mit/lua/dist.work/src/lundump.h               |     38 +
 external/mit/lua/dist.work/src/lutf8lib.c              |    288 +
 external/mit/lua/dist.work/src/lvm.c                   |   1842 ++
 external/mit/lua/dist.work/src/lvm.h                   |    138 +
 external/mit/lua/dist.work/src/lzio.c                  |     70 +
 external/mit/lua/dist.work/src/lzio.h                  |     68 +
 75 files changed, 43638 insertions(+), 0 deletions(-)

diffs (truncated from 43934 to 300 lines):

diff -r 027163f1434e -r 13563702f006 external/mit/lua/dist.work/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/lua/dist.work/Makefile       Thu Dec 29 09:45:56 2022 +0000
@@ -0,0 +1,106 @@
+# Makefile for installing Lua
+# See doc/readme.html for installation and customization instructions.
+
+# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
+
+# Your platform. See PLATS for possible values.
+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.
+# You may want to make INSTALL_LMOD and INSTALL_CMOD consistent with
+# LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h.
+INSTALL_TOP= /usr/local
+INSTALL_BIN= $(INSTALL_TOP)/bin
+INSTALL_INC= $(INSTALL_TOP)/include
+INSTALL_LIB= $(INSTALL_TOP)/lib
+INSTALL_MAN= $(INSTALL_TOP)/man/man1
+INSTALL_LMOD= $(INSTALL_TOP)/share/lua/$V
+INSTALL_CMOD= $(INSTALL_TOP)/lib/lua/$V
+
+# How to install. If your install program does not support "-p", then
+# you may have to run ranlib on the installed liblua.a.
+INSTALL= install -p
+INSTALL_EXEC= $(INSTALL) -m 0755
+INSTALL_DATA= $(INSTALL) -m 0644
+#
+# If you don't have "install" you can use "cp" instead.
+# INSTALL= cp -p
+# INSTALL_EXEC= $(INSTALL)
+# INSTALL_DATA= $(INSTALL)
+
+# Other utilities.
+MKDIR= mkdir -p
+RM= rm -f
+
+# == END OF USER SETTINGS -- NO NEED TO CHANGE ANYTHING BELOW THIS LINE =======
+
+# Convenience platforms targets.
+PLATS= guess aix bsd c89 freebsd generic linux linux-readline macosx mingw posix solaris
+
+# What to install.
+TO_BIN= lua luac
+TO_INC= lua.h luaconf.h lualib.h lauxlib.h lua.hpp
+TO_LIB= liblua.a
+TO_MAN= lua.1 luac.1
+
+# Lua version and release.
+V= 5.4
+R= $V.4
+
+# Targets start here.
+all:   $(PLAT)
+
+$(PLATS) help test clean:
+       @cd src && $(MAKE) $@
+
+install: dummy
+       cd src && $(MKDIR) $(INSTALL_BIN) $(INSTALL_INC) $(INSTALL_LIB) $(INSTALL_MAN) $(INSTALL_LMOD) $(INSTALL_CMOD)
+       cd src && $(INSTALL_EXEC) $(TO_BIN) $(INSTALL_BIN)
+       cd src && $(INSTALL_DATA) $(TO_INC) $(INSTALL_INC)
+       cd src && $(INSTALL_DATA) $(TO_LIB) $(INSTALL_LIB)
+       cd doc && $(INSTALL_DATA) $(TO_MAN) $(INSTALL_MAN)
+
+uninstall:
+       cd src && cd $(INSTALL_BIN) && $(RM) $(TO_BIN)
+       cd src && cd $(INSTALL_INC) && $(RM) $(TO_INC)
+       cd src && cd $(INSTALL_LIB) && $(RM) $(TO_LIB)
+       cd doc && cd $(INSTALL_MAN) && $(RM) $(TO_MAN)
+
+local:
+       $(MAKE) install INSTALL_TOP=../install
+
+# make may get confused with install/ if it does not support .PHONY.
+dummy:
+
+# Echo config parameters.
+echo:
+       @cd src && $(MAKE) -s echo
+       @echo "PLAT= $(PLAT)"
+       @echo "V= $V"
+       @echo "R= $R"
+       @echo "TO_BIN= $(TO_BIN)"
+       @echo "TO_INC= $(TO_INC)"
+       @echo "TO_LIB= $(TO_LIB)"
+       @echo "TO_MAN= $(TO_MAN)"
+       @echo "INSTALL_TOP= $(INSTALL_TOP)"
+       @echo "INSTALL_BIN= $(INSTALL_BIN)"
+       @echo "INSTALL_INC= $(INSTALL_INC)"
+       @echo "INSTALL_LIB= $(INSTALL_LIB)"
+       @echo "INSTALL_MAN= $(INSTALL_MAN)"
+       @echo "INSTALL_LMOD= $(INSTALL_LMOD)"
+       @echo "INSTALL_CMOD= $(INSTALL_CMOD)"
+       @echo "INSTALL_EXEC= $(INSTALL_EXEC)"
+       @echo "INSTALL_DATA= $(INSTALL_DATA)"
+
+# Echo pkg-config data.
+pc:
+       @echo "version=$R"
+       @echo "prefix=$(INSTALL_TOP)"
+       @echo "libdir=$(INSTALL_LIB)"
+       @echo "includedir=$(INSTALL_INC)"
+
+# 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 027163f1434e -r 13563702f006 external/mit/lua/dist.work/README
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/lua/dist.work/README Thu Dec 29 09:45:56 2022 +0000
@@ -0,0 +1,6 @@
+
+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 027163f1434e -r 13563702f006 external/mit/lua/dist.work/doc/contents.html
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/lua/dist.work/doc/contents.html      Thu Dec 29 09:45:56 2022 +0000
@@ -0,0 +1,674 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<HTML>
+<HEAD>
+<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">
+</HEAD>
+
+<BODY>
+
+<H1>
+<A HREF="http://www.lua.org/";><IMG SRC="logo.gif" ALT="Lua"></A>
+Lua 5.4 Reference Manual
+</H1>
+
+<P>
+The reference manual is the official definition of the Lua language.
+<BR>
+For a complete introduction to Lua programming, see the book
+<A HREF="http://www.lua.org/pil/";>Programming in Lua</A>.
+
+<DIV CLASS="menubar">
+<A HREF="manual.html">start</A>
+&middot;
+<A HREF="#contents">contents</A>
+&middot;
+<A HREF="#index">index</A>
+&middot;
+<A HREF="http://www.lua.org/manual/";>other versions</A>
+</DIV>
+
+<P>
+<SMALL>
+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>
+
+<H2><A NAME="contents">Contents</A></H2>
+<UL CLASS="contents menubar">
+<LI><A HREF="manual.html">1 &ndash; Introduction</A>
+<P>
+<LI><A HREF="manual.html#2">2 &ndash; Basic Concepts</A>
+<UL>
+<LI><A HREF="manual.html#2.1">2.1 &ndash; Values and Types</A>
+<LI><A HREF="manual.html#2.2">2.2 &ndash; Environments and the Global Environment</A>
+<LI><A HREF="manual.html#2.3">2.3 &ndash; Error Handling</A>
+<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; 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>
+<P>
+<LI><A HREF="manual.html#3">3 &ndash; The Language</A>
+<UL>
+<LI><A HREF="manual.html#3.1">3.1 &ndash; Lexical Conventions</A>
+<LI><A HREF="manual.html#3.2">3.2 &ndash; Variables</A>
+<LI><A HREF="manual.html#3.3">3.3 &ndash; Statements</A>
+<UL>
+<LI><A HREF="manual.html#3.3.1">3.3.1 &ndash; Blocks</A>
+<LI><A HREF="manual.html#3.3.2">3.3.2 &ndash; Chunks</A>
+<LI><A HREF="manual.html#3.3.3">3.3.3 &ndash; Assignment</A>
+<LI><A HREF="manual.html#3.3.4">3.3.4 &ndash; Control Structures</A>
+<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>
+<LI><A HREF="manual.html#3.4.1">3.4.1 &ndash; Arithmetic Operators</A>
+<LI><A HREF="manual.html#3.4.2">3.4.2 &ndash; Bitwise Operators</A>
+<LI><A HREF="manual.html#3.4.3">3.4.3 &ndash; Coercions and Conversions</A>
+<LI><A HREF="manual.html#3.4.4">3.4.4 &ndash; Relational Operators</A>
+<LI><A HREF="manual.html#3.4.5">3.4.5 &ndash; Logical Operators</A>
+<LI><A HREF="manual.html#3.4.6">3.4.6 &ndash; Concatenation</A>
+<LI><A HREF="manual.html#3.4.7">3.4.7 &ndash; The Length Operator</A>
+<LI><A HREF="manual.html#3.4.8">3.4.8 &ndash; Precedence</A>
+<LI><A HREF="manual.html#3.4.9">3.4.9 &ndash; Table Constructors</A>
+<LI><A HREF="manual.html#3.4.10">3.4.10 &ndash; Function Calls</A>
+<LI><A HREF="manual.html#3.4.11">3.4.11 &ndash; Function Definitions</A>
+</UL>
+<LI><A HREF="manual.html#3.5">3.5 &ndash; Visibility Rules</A>
+</UL>
+<P>
+<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>
+<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>
+<UL>
+<LI><A HREF="manual.html#5.1">5.1 &ndash; Functions and Types</A>
+</UL>
+<P>
+<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>
+<LI><A HREF="manual.html#6.3">6.3 &ndash; Modules</A>
+<LI><A HREF="manual.html#6.4">6.4 &ndash; String Manipulation</A>
+<UL>
+<LI><A HREF="manual.html#6.4.1">6.4.1 &ndash; Patterns</A>
+<LI><A HREF="manual.html#6.4.2">6.4.2 &ndash; Format Strings for Pack and Unpack</A>
+</UL>
+<LI><A HREF="manual.html#6.5">6.5 &ndash; UTF-8 Support</A>
+<LI><A HREF="manual.html#6.6">6.6 &ndash; Table Manipulation</A>
+<LI><A HREF="manual.html#6.7">6.7 &ndash; Mathematical Functions</A>
+<LI><A HREF="manual.html#6.8">6.8 &ndash; Input and Output Facilities</A>
+<LI><A HREF="manual.html#6.9">6.9 &ndash; Operating System Facilities</A>
+<LI><A HREF="manual.html#6.10">6.10 &ndash; The Debug Library</A>
+</UL>
+<P>
+<LI><A HREF="manual.html#7">7 &ndash; Lua Standalone</A>
+<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; 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>
+</UL>
+
+<H2><A NAME="index">Index</A></H2>
+<TABLE CLASS="menubar" WIDTH="100%">
+<TR>
+<TD>
+<H3><A NAME="functions">Lua functions</A></H3>
+<P>
+<A HREF="manual.html#6.1">basic</A><BR>
+<A HREF="manual.html#pdf-_G">_G</A><BR>
+<A HREF="manual.html#pdf-_VERSION">_VERSION</A><BR>
+<A HREF="manual.html#pdf-assert">assert</A><BR>
+<A HREF="manual.html#pdf-collectgarbage">collectgarbage</A><BR>
+<A HREF="manual.html#pdf-dofile">dofile</A><BR>
+<A HREF="manual.html#pdf-error">error</A><BR>
+<A HREF="manual.html#pdf-getmetatable">getmetatable</A><BR>
+<A HREF="manual.html#pdf-ipairs">ipairs</A><BR>
+<A HREF="manual.html#pdf-load">load</A><BR>
+<A HREF="manual.html#pdf-loadfile">loadfile</A><BR>
+<A HREF="manual.html#pdf-next">next</A><BR>
+<A HREF="manual.html#pdf-pairs">pairs</A><BR>
+<A HREF="manual.html#pdf-pcall">pcall</A><BR>
+<A HREF="manual.html#pdf-print">print</A><BR>
+<A HREF="manual.html#pdf-rawequal">rawequal</A><BR>
+<A HREF="manual.html#pdf-rawget">rawget</A><BR>
+<A HREF="manual.html#pdf-rawlen">rawlen</A><BR>
+<A HREF="manual.html#pdf-rawset">rawset</A><BR>
+<A HREF="manual.html#pdf-require">require</A><BR>
+<A HREF="manual.html#pdf-select">select</A><BR>
+<A HREF="manual.html#pdf-setmetatable">setmetatable</A><BR>
+<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>



Home | Main Index | Thread Index | Old Index