On 24 Oct, 2013, at 10:08 , godsolio <
3049...@qq.com> wrote:
> Why I feel that the C language source code of lua is out-sync between Github and www.lua.org.Which version is the real source code that I can look up and compile?
LuaDist contains two modifications of the original Lua source. The first modification is the build system, in LuaDist CMake is used to build everything so the default Makefiles included in the original Lua distribution is not used. Additionally LuaDist extends the idea of searching for modules using relative paths from the executable location as is the case on Windows. This functionality is essential to ensure LuaDist works on other platforms as well. The modification does not modify the interpreter in any way, it just extends the search mechanism for loading libraries and modules (see loadlib_rel.c)[1].
The original sources are of course available from the official language page[2].
pd
[1]
https://github.com/LuaDist/lua/blob/master/src/loadlib_rel.c
[2]
http://www.lua.org/ftp/