Started to add Lua support to AROS.
src/Makefile: link with lua. Note that I'm currently using an absolute path to include/lua which only exits on my machine until AROS has support for pkg-config. src/setup.h: added valid path to lua scripts. src/io.c: take colon into account when checking for last separator. src/factory.c: use luaL_newstate() instead of lua_open() because latter doesn't exist anymore in Lua-5.2. Note: that fix should be valid for all platforms. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1977 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
@@ -1593,8 +1593,12 @@ void Run_script(const char *script_subdirectory, const char *script_filename)
|
||||
Extract_path(buf,Last_run_script);
|
||||
chdir(buf);
|
||||
|
||||
#if defined(__AROS__)
|
||||
L = luaL_newstate(); // lua_open() doesn't exist anymore in Lua-5.2
|
||||
#else
|
||||
L = lua_open();
|
||||
|
||||
#endif
|
||||
|
||||
strcpy(buf, "LUA_PATH=");
|
||||
strcat(buf, Data_directory);
|
||||
Append_path(buf+9, SCRIPTS_SUBDIRECTORY, NULL);
|
||||
|
||||
Reference in New Issue
Block a user