lua-users home
lua-l archive

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


2014-12-11 21:35 GMT+01:00 Ulrich Schmidt <u.sch.zw@gmx.de>:
> Thank you.
>
> defining..
> ----8X----------------------------------
> #define LUA_COMPAT_5_1
> #define LUA_COMPAT_5_2
> ----8X----------------------------------
> ... in luaconf.h seems to be a good idea. and solves most of the problems
> for lfs, lanes, lsqlite, ...
>
> lua_dump need some changes in the sources and also lua_getfenv, you
> mentioned.
>
> lpeg seems to need a update.

This small patch
https://github.com/fperrad/br/blob/lua/package/lpeg/lpeg-01-fix-compat-lua-5.3.patch
does the job.

François

>
> Ulrich.
>
> Am 11.12.2014 um 21:15 schrieb Paul K:
>
>> Hi Ulrich,
>>
>>> You compiled lsf and lpeg too?
>>
>> I tried to compile lpeg, but having LUA_COMPAT_APIINTCASTS didn't help
>> much as there are still references to lua_getfenv, lua_setfenv and
>> other similar methods.
>>
>> lfs has been recently updated to support 5.3 and it loaded without
>> issues after compiling with the following command:
>>
>>> gcc -O2 -shared -s -I %LUA_DIR%\src -L %LUA_DIR%\src -o lfs.dll lfs.c
>>> -llua53
>>
>> Paul.
>>
>
>