Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Announcements
➜ Lua 5.1.3 patched DLL released
Lua 5.1.3 patched DLL released
|
Postings by administrators only.
Refresh page
Posted by
| Nick Gammon
Australia (23,162 posts) Bio
Forum Administrator |
Date
| Sat 31 May 2008 03:25 AM (UTC) Amended on Sun 01 Jun 2008 05:35 AM (UTC) by Nick Gammon
|
Message
| The Lua website has announced an official patch to Lua 5.1.3 (on 7th May 2008), here:
http://www.lua.org/news.html
The fixes in Lua are fairly obscure, as described here:
http://www.lua.org/bugs.html
In the interests of staying up-to-date, I have compiled a version with the normal changes made for MUSHclient (basically, removing some deprecated options), and made a copy available here (102 Kb):
http://www.gammon.com.au/files/mushclient/lua5.1_extras/lua.5.1.3_patched.zip
The md5sum for this file is:
2f06ac6a9f7edb0fc63bd6704149a941 *lua.5.1.3_patched.zip
If you want to obtain a copy, download the above zip file, inside you will find lua5.1.dll - copy that file into the MUSHclient installation directory (the same directory that has MUSHclient.exe in it), probably:
C:\Program Files\MUSHclient
The changes from stock Lua 5.1.3 and the version above are:
- The patches released on the Lua web site applied. This is from this file:
http://www.lua.org/ftp/patch-lua-5.1.3
- The following patches applied:
diff -d ../../lua-5.1.3_as_patched/src/Makefile ../../lua-5.1.3/src/Makefile
11c11
< CFLAGS= -O2 -Wall $(MYCFLAGS)
---
> CFLAGS= -O3 -Wall $(MYCFLAGS)
107c107
< $(MAKE) "LUA_A=lua51.dll" "LUA_T=lua.exe" \
---
> $(MAKE) "LUA_A=lua5.1.dll" "LUA_T=lua.exe" \
diff -d ../../lua-5.1.3_as_patched/src/luaconf.h ../../lua-5.1.3/src/luaconf.h
336c336
< #define LUA_COMPAT_VARARG
---
> #undef LUA_COMPAT_VARARG
343c343
< #define LUA_COMPAT_MOD
---
> #undef LUA_COMPAT_MOD
351c351
< #define LUA_COMPAT_LSTR 1
---
> #undef LUA_COMPAT_LSTR
358c358
< #define LUA_COMPAT_GFIND
---
> #undef LUA_COMPAT_GFIND
738a739
> #define LUA_USELONGLONG // njg
741c742
< #define LUA_INTFRMLEN "ll"
---
> #define LUA_INTFRMLEN "I64"
To compile, I used this:
make "CC=gcc -mno-cygwin" mingw
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
6,560 views.
Postings by administrators only.
Refresh page
top