summaryrefslogtreecommitdiff
path: root/lang/lua/patches
diff options
context:
space:
mode:
authorjtb <jtb>2003-04-29 23:33:56 +0000
committerjtb <jtb>2003-04-29 23:33:56 +0000
commitf44981e6beaeb29fbd64f6882ef581b8ec288727 (patch)
tree009f4a6b4f4c09b5fcb3b2932bbe99608188a520 /lang/lua/patches
parent18337f394db9c32f1dc54ebdd784f7fc5880170a (diff)
downloadpkgsrc-f44981e6beaeb29fbd64f6882ef581b8ec288727.tar.gz
Update to version 5.0.
* Changes from version 4.0 to 5.0 ------------------------------- Language: + lexical scoping. + Lua coroutines. + standard libraries now packaged in tables. + tags replaced by metatables and tag methods replaced by metamethods, stored in metatables. + proper tail calls. + each function can have its own global table, which can be shared. + new __newindex metamethod, called when we insert a new key into a table. + new block comments: --[[ ... ]]. + new generic for. + new weak tables. + new boolean type. + new syntax "local function". + (f()) returns the first value returned by f. + {f()} fills a table with all values returned by f. + \n ignored in [[\n . + fixed and-or priorities. + more general syntax for function definition (e.g. function a.x.y:f()...end). + more general syntax for function calls (e.g. (print or write)(9)). + new functions (time/date, tmpfile, unpack, require, load*, etc.). API: + chunks are loaded by using lua_load; new luaL_loadfile and luaL_loadbuffer. + introduced lightweight userdata, a simple "void*" without a metatable. + new error handling protocol: the core no longer prints error messages; all errors are reported to the caller on the stack. + new lua_atpanic for host cleanup. + new, signal-safe, hook scheme. Implementation: + new license: MIT. + new, faster, register-based virtual machine. + support for external multithreading and coroutines. + new and consistent error message format. + the core no longer needs "stdio.h" for anything (except for a single use of sprintf to convert numbers to strings). + lua.c now runs the environment variable LUA_INIT, if present. It can be "@filename", to run a file, or the chunk itself. + support for user extensions in lua.c. sample implementation given for command line editing. + new dynamic loading library, active by default on several platforms. + safe garbage-collector metamethods. + precompiled bytecodes checked for integrity (secure binary dostring). + strings are fully aligned. + position capture in string.find. + read('*l') can read lines with embedded zeros.
Diffstat (limited to 'lang/lua/patches')
-rw-r--r--lang/lua/patches/patch-aa4
-rw-r--r--lang/lua/patches/patch-ab14
-rw-r--r--lang/lua/patches/patch-ac12
-rw-r--r--lang/lua/patches/patch-ad10
-rw-r--r--lang/lua/patches/patch-ae16
5 files changed, 28 insertions, 28 deletions
diff --git a/lang/lua/patches/patch-aa b/lang/lua/patches/patch-aa
index c006693252b..4f15bcfb785 100644
--- a/lang/lua/patches/patch-aa
+++ b/lang/lua/patches/patch-aa
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.2 2003/02/22 00:51:58 jtb Exp $
+$NetBSD: patch-aa,v 1.3 2003/04/29 23:33:57 jtb Exp $
--- /dev/null Fri Feb 21 23:40:02 2003
-+++ build/Makefile
++++ objdir/Makefile
@@ -0,0 +1,3 @@
+SUBDIR+= liblua liblualib lua luac
+
diff --git a/lang/lua/patches/patch-ab b/lang/lua/patches/patch-ab
index df039e8728a..00e87a1ce2a 100644
--- a/lang/lua/patches/patch-ab
+++ b/lang/lua/patches/patch-ab
@@ -1,11 +1,11 @@
-$NetBSD: patch-ab,v 1.2 2003/02/22 00:51:59 jtb Exp $
+$NetBSD: patch-ab,v 1.3 2003/04/29 23:33:57 jtb Exp $
---- /dev/null Fri Feb 21 23:53:36 2003
-+++ build/liblua/Makefile
+--- /dev/null
++++ objdir/liblua/Makefile
@@ -0,0 +1,28 @@
+LIB= lua
+
-+SHLIB_MAJOR= 0
++SHLIB_MAJOR= 1
+SHLIB_MINOR= 0
+
+LIBDIR= ${PREFIX}/lib
@@ -19,10 +19,10 @@ $NetBSD: patch-ab,v 1.2 2003/02/22 00:51:59 jtb Exp $
+
+.PATH: ${.CURDIR}/../../src
+
-+INCLUDES= lua.h luadebug.h lauxlib.h
++INCLUDES= lua.h lauxlib.h
+
-+SRCS= lapi.c lcode.c ldebug.c ldo.c lfunc.c lgc.c llex.c lmem.c \
-+ lobject.c lparser.c lstate.c lstring.c ltable.c ltests.c \
++SRCS= lapi.c lcode.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c lmem.c \
++ lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c ltests.c \
+ ltm.c lundump.c lvm.c lzio.c
+
+afterinstall:
diff --git a/lang/lua/patches/patch-ac b/lang/lua/patches/patch-ac
index cbf24064f9f..2e60417301f 100644
--- a/lang/lua/patches/patch-ac
+++ b/lang/lua/patches/patch-ac
@@ -1,18 +1,18 @@
-$NetBSD: patch-ac,v 1.1 2003/02/22 00:51:59 jtb Exp $
+$NetBSD: patch-ac,v 1.2 2003/04/29 23:33:57 jtb Exp $
---- /dev/null Fri Feb 21 23:53:43 2003
-+++ build/liblualib/Makefile
+--- /dev/null
++++ objdir/liblualib/Makefile
@@ -0,0 +1,27 @@
+LIB= lualib
+
-+SHLIB_MAJOR= 0
++SHLIB_MAJOR= 1
+SHLIB_MINOR= 0
+
+LIBDIR= ${PREFIX}/lib
+INCDIR= ${PREFIX}/include
+
+CPPFLAGS+= -I${.CURDIR}/../../include
-+CPPFLAGS+= -DPOPEN
++CPPFLAGS+= -DUSE_DLOPEN=1
+
+LDADD+= -R${LIBDIR} -L${.CURDIR}/../liblua -llua -lm
+
@@ -22,7 +22,7 @@ $NetBSD: patch-ac,v 1.1 2003/02/22 00:51:59 jtb Exp $
+
+INCLUDES= lualib.h
+
-+SRCS= lauxlib.c lbaselib.c ldblib.c liolib.c lmathlib.c lstrlib.c
++SRCS= lauxlib.c lbaselib.c ldblib.c liolib.c lmathlib.c ltablib.c lstrlib.c loadlib.c
+
+afterinstall:
+ for i in ${INCLUDES}; do \
diff --git a/lang/lua/patches/patch-ad b/lang/lua/patches/patch-ad
index 77262644e3d..18d9632aa2f 100644
--- a/lang/lua/patches/patch-ad
+++ b/lang/lua/patches/patch-ad
@@ -1,7 +1,7 @@
-$NetBSD: patch-ad,v 1.1 2003/02/22 00:51:59 jtb Exp $
+$NetBSD: patch-ad,v 1.2 2003/04/29 23:33:57 jtb Exp $
---- /dev/null Sat Feb 22 00:18:00 2003
-+++ build/lua/Makefile
+--- /dev/null
++++ objdir/lua/Makefile
@@ -0,0 +1,16 @@
+PROG= lua
+
@@ -10,9 +10,9 @@ $NetBSD: patch-ad,v 1.1 2003/02/22 00:51:59 jtb Exp $
+BINDIR= ${PREFIX}/bin
+MANDIR= ${PREFIX}/man
+
-+CPPFLAGS+= -D_POSIX_SOURCE -I${.CURDIR}/../../include
++CPPFLAGS+= -I${.CURDIR}/../../include
+
-+LDFLAGS+= -R${PREFIX}/lib -L${.CURDIR}/../liblua -L${.CURDIR}/../liblualib
++LDFLAGS+= -Wl,--export-dynamic -R${PREFIX}/lib -L${.CURDIR}/../liblua -L${.CURDIR}/../liblualib
+
+LDADD+= -llua -llualib -lm
+
diff --git a/lang/lua/patches/patch-ae b/lang/lua/patches/patch-ae
index bc6d6319051..5feea4287ca 100644
--- a/lang/lua/patches/patch-ae
+++ b/lang/lua/patches/patch-ae
@@ -1,21 +1,21 @@
-$NetBSD: patch-ae,v 1.1 2003/02/22 00:51:59 jtb Exp $
+$NetBSD: patch-ae,v 1.2 2003/04/29 23:33:57 jtb Exp $
---- /dev/null Sat Feb 22 00:18:04 2003
-+++ build/luac/Makefile
+--- /dev/null
++++ objdir/luac/Makefile
@@ -0,0 +1,16 @@
+PROG= luac
+
-+SRCS= dump.c luac.c opt.c print.c stubs.c
++SRCS= luac.c print.c lopcodes.c
+
+BINDIR= ${PREFIX}/bin
+MANDIR= ${PREFIX}/man
+
-+CPPFLAGS+= -D_POSIX_SOURCE -I${.CURDIR}/../../include -I${.CURDIR}/../../src
++CPPFLAGS+= -DLUA_OPNAMES -I${.CURDIR}/../../include -I${.CURDIR}/../../src
+
-+LDFLAGS+= -R${PREFIX}/lib -L${.CURDIR}/../liblua
++LDFLAGS+= -Wl,--export-dynamic -R${PREFIX}/lib -L${.CURDIR}/../liblualib -L${.CURDIR}/../liblua
+
-+LDADD+= -llua
++LDADD+= -llualib -llua
+
-+.PATH: ${.CURDIR}/../../src/luac
++.PATH: ${.CURDIR}/../../src/luac ${.CURDIR}/../../src
+
+.include <bsd.prog.mk>