From: John L. <jr...@us...> - 2008-01-23 06:43:43
|
Update of /cvsroot/wxlua/wxLua/modules/wxluasocket/include In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv692/wxLua/modules/wxluasocket/include Modified Files: wxluasocket_bind.h Log Message: Use positive values for WXLUA_TXXX types not negative. Initialize the wxLua types when the bindings are initialized not when installed into Lua so we can install the bindings in any order or number for multiple wxLuaStates. Index: wxluasocket_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxluasocket/include/wxluasocket_bind.h,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** wxluasocket_bind.h 22 Dec 2007 06:07:16 -0000 1.31 --- wxluasocket_bind.h 23 Jan 2008 06:43:40 -0000 1.32 *************** *** 21,31 **** // the current version of the bindings. // See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h' ! #if WXLUA_BINDING_VERSION > 21 # error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." ! #endif //WXLUA_BINDING_VERSION > 21 // --------------------------------------------------------------------------- // binding class ! class wxLuaBinding_wxluasocket : public wxLuaBinding { public: --- 21,31 ---- // the current version of the bindings. // See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h' ! #if WXLUA_BINDING_VERSION > 22 # error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." ! #endif //WXLUA_BINDING_VERSION > 22 // --------------------------------------------------------------------------- // binding class ! class WXDLLIMPEXP_WXLUASOCKET wxLuaBinding_wxluasocket : public wxLuaBinding { public: *************** *** 56,79 **** #include "wxluasocket/include/wxldserv.h" - - // --------------------------------------------------------------------------- - // Functions to access wxLuaBindXXX structs - // --------------------------------------------------------------------------- - - extern wxLuaBindClass *wxLuaGetClassList_wxluasocket(size_t &count); - extern wxLuaBindNumber *wxLuaGetDefineList_wxluasocket(size_t &count); - extern wxLuaBindString *wxLuaGetStringList_wxluasocket(size_t &count); - extern wxLuaBindEvent *wxLuaGetEventList_wxluasocket(size_t &count); - extern wxLuaBindObject *wxLuaGetObjectList_wxluasocket(size_t &count); - extern wxLuaBindMethod *wxLuaGetFunctionList_wxluasocket(size_t &count); - // --------------------------------------------------------------------------- // Lua Tag Method Values and Tables for each Class // --------------------------------------------------------------------------- ! extern WXDLLIMPEXP_DATA_WXLUASOCKET(int) g_wxluatype_wxLuaDebuggerEvent; extern WXDLLIMPEXP_WXLUASOCKET wxLuaBindMethod wxLuaDebuggerEvent_methods[]; extern WXDLLIMPEXP_DATA_WXLUASOCKET(int) wxLuaDebuggerEvent_methodCount; ! extern WXDLLIMPEXP_DATA_WXLUASOCKET(int) g_wxluatype_wxLuaDebuggerServer; extern WXDLLIMPEXP_WXLUASOCKET wxLuaBindMethod wxLuaDebuggerServer_methods[]; extern WXDLLIMPEXP_DATA_WXLUASOCKET(int) wxLuaDebuggerServer_methodCount; --- 56,67 ---- #include "wxluasocket/include/wxldserv.h" // --------------------------------------------------------------------------- // Lua Tag Method Values and Tables for each Class // --------------------------------------------------------------------------- ! extern WXDLLIMPEXP_DATA_WXLUASOCKET(int) wxluatype_wxLuaDebuggerEvent; extern WXDLLIMPEXP_WXLUASOCKET wxLuaBindMethod wxLuaDebuggerEvent_methods[]; extern WXDLLIMPEXP_DATA_WXLUASOCKET(int) wxLuaDebuggerEvent_methodCount; ! extern WXDLLIMPEXP_DATA_WXLUASOCKET(int) wxluatype_wxLuaDebuggerServer; extern WXDLLIMPEXP_WXLUASOCKET wxLuaBindMethod wxLuaDebuggerServer_methods[]; extern WXDLLIMPEXP_DATA_WXLUASOCKET(int) wxLuaDebuggerServer_methodCount; |