From: John L. <jr...@us...> - 2007-03-23 00:09:56
|
Update of /cvsroot/wxlua/wxLua/modules/wxluasocket/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv18290/wxLua/modules/wxluasocket/src Modified Files: dservice.cpp wxldtarg.cpp Log Message: change tget to not push nil on the stack if it fails since we'd never use it store the WXLUACLASS in our wxLuaReferences LUA_REGISTRY table to allow lookup by tag store the WXLUACLASS in our wxLuaClasses LUA_REGISTRY table to allow lookup by name use lua_createtable for pushing wxArrayInt/String to preallocate them don't call lua_objlen on the tables for getting wxArrayInt/String since objlen traverses it so why do it twice. Index: wxldtarg.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxluasocket/src/wxldtarg.cpp,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** wxldtarg.cpp 12 Dec 2006 01:23:40 -0000 1.32 --- wxldtarg.cpp 23 Mar 2007 00:09:36 -0000 1.33 *************** *** 570,574 **** } ! if ((nReference != LUA_NOREF) && (m_wxlState.tget(nReference) != 0)) { m_wxlState.tremove(nReference); --- 570,574 ---- } ! if (m_wxlState.tget(nReference)) { m_wxlState.tremove(nReference); Index: dservice.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxluasocket/src/dservice.cpp,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** dservice.cpp 19 Mar 2007 03:47:21 -0000 1.30 --- dservice.cpp 23 Mar 2007 00:09:36 -0000 1.31 *************** *** 1261,1265 **** } ! if ((nReference != LUA_NOREF) && (m_wxlState.tget(nReference) != 0)) { m_wxlState.tremove(nReference); --- 1261,1265 ---- } ! if (m_wxlState.tget(nReference)) { m_wxlState.tremove(nReference); |