From: John L. <jr...@us...> - 2008-01-25 23:51:32
|
Update of /cvsroot/wxlua/wxLua/modules/lua/etc In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv1159/wxLua/modules/lua/etc Modified Files: lua.pc luavs.bat min.c strict.lua Log Message: - Removed the wxLuaBinding::PreRegister() and PostRegister() functions and made RegisterBinding() virtual Note: wxLuaBinding::RegisterBinding() now leaves the Lua table that the binding objects were installed into on the stack. You must pop it. * The rules.lua for genwxbind.lua now uses wxLuaBinding_class_declaration and wxLuaBinding_class_implementation to replace wxLuaBinding_preregister and wxLuaBinding_postregister. You may now add whatever you like to the class declaration and implementation source code. Updated to Lua 5.1.3 official Index: min.c =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/lua/etc/min.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** min.c 29 Mar 2006 05:48:10 -0000 1.2 --- min.c 25 Jan 2008 23:50:50 -0000 1.3 *************** *** 19,23 **** if (lua_isstring(L,i)) printf("%s",lua_tostring(L,i)); ! else if (lua_isnil(L,i)==2) printf("%s","nil"); else if (lua_isboolean(L,i)) --- 19,23 ---- if (lua_isstring(L,i)) printf("%s",lua_tostring(L,i)); ! else if (lua_isnil(L,i)) printf("%s","nil"); else if (lua_isboolean(L,i)) Index: luavs.bat =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/lua/etc/luavs.bat,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** luavs.bat 25 Apr 2007 02:52:20 -0000 1.2 --- luavs.bat 25 Jan 2008 23:50:50 -0000 1.3 *************** *** 1,15 **** ! rem script to build Lua under "Visual Studio .NET Command Prompt". ! rem do not run it from this directory, run it from the toplevel: etc\luavs.bat ! rem it creates lua51.dll, lua51.lib, lua.exe, and luac.exe in src. cd src ! cl /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DLUA_BUILD_AS_DLL l*.c del lua.obj luac.obj ! link /DLL /out:lua51.dll l*.obj ! cl /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE /DLUA_BUILD_AS_DLL lua.c ! link /out:lua.exe lua.obj lua51.lib ! cl /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE l*.c print.c ! del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj loslib.obj ltablib.obj lstrlib.obj loadlib.obj ! link /out:luac.exe *.obj ! del *.obj cd .. --- 1,28 ---- ! @rem Script to build Lua under "Visual Studio .NET Command Prompt". ! @rem Do not run from this directory; run it from the toplevel: etc\luavs.bat . ! @rem It creates lua51.dll, lua51.lib, lua.exe, and luac.exe in src. ! @rem (contributed by David Manura and Mike Pall) ! ! @setlocal ! @set MYCOMPILE=cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE ! @set MYLINK=link /nologo ! @set MYMT=mt /nologo cd src ! %MYCOMPILE% /DLUA_BUILD_AS_DLL l*.c del lua.obj luac.obj ! %MYLINK% /DLL /out:lua51.dll l*.obj ! if exist lua51.dll.manifest^ ! %MYMT% -manifest lua51.dll.manifest -outputresource:lua51.dll;2 ! %MYCOMPILE% /DLUA_BUILD_AS_DLL lua.c ! %MYLINK% /out:lua.exe lua.obj lua51.lib ! if exist lua.exe.manifest^ ! %MYMT% -manifest lua.exe.manifest -outputresource:lua.exe ! %MYCOMPILE% l*.c print.c ! del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj^ ! loslib.obj ltablib.obj lstrlib.obj loadlib.obj ! %MYLINK% /out:luac.exe *.obj ! if exist luac.exe.manifest^ ! %MYMT% -manifest luac.exe.manifest -outputresource:luac.exe ! del *.obj *.manifest cd .. Index: lua.pc =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/lua/etc/lua.pc,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** lua.pc 25 Apr 2007 02:52:20 -0000 1.3 --- lua.pc 25 Jan 2008 23:50:50 -0000 1.4 *************** *** 6,10 **** V= 5.1 # grep '^R=' ../Makefile ! R= 5.1.2 # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/' --- 6,10 ---- V= 5.1 # grep '^R=' ../Makefile ! R= 5.1.3 # grep '^INSTALL_.*=' ../Makefile | sed 's/INSTALL_TOP/prefix/' Index: strict.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/lua/etc/strict.lua,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** strict.lua 25 Apr 2007 02:52:20 -0000 1.2 --- strict.lua 25 Jan 2008 23:50:50 -0000 1.3 *************** *** 7,10 **** --- 7,12 ---- -- + local getinfo, error, rawset, rawget = debug.getinfo, error, rawset, rawget + local mt = getmetatable(_G) if mt == nil then *************** *** 16,20 **** local function what () ! local d = debug.getinfo(3, "S") return d and d.what or "C" end --- 18,22 ---- local function what () ! local d = getinfo(3, "S") return d and d.what or "C" end |