From: John L. <jr...@us...> - 2008-01-24 00:18:50
|
Update of /cvsroot/wxlua/wxLua/modules/wxbind/include In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv5955/wxLua/modules/wxbind/include Modified Files: wxadv_bind.h wxaui_bind.h wxbase_bind.h wxcore_bind.h wxgl_bind.h wxhtml_bind.h wxmedia_bind.h wxnet_bind.h wxrichtext_bind.h wxstc_bind.h wxxml_bind.h wxxrc_bind.h Log Message: * The wxLua type numbers are now generated when the first wxLuaState is created rather then when the bindings are registered into Lua. This means that each wxLua type stays the same for the life of the program no matter what bindings are installed or in what order. - The copy of the wxLuaBindingList in the wxLuaState was removed since it is no longer needed. Renamed the functions static wxLuaBinding::GetBindXXX() to FindBindXXX() since they no longer needed the extra wxLuaBindingList parameter and they had the same signature as the existing GetBindXXX() functions. - Added wxLuaState::RegisterBinding(wxLuaBinding*) function to register single bindings at a time. You may also reregister bindings, which means that their metatable functions are simple rewritten. Index: wxadv_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxadv_bind.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxadv_bind.h 23 Jan 2008 06:43:35 -0000 1.10 --- wxadv_bind.h 24 Jan 2008 00:18:15 -0000 1.11 *************** *** 21,27 **** // 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 // --------------------------------------------------------------------------- --- 21,27 ---- // the current version of the bindings. // See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h' ! #if WXLUA_BINDING_VERSION > 23 # error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." ! #endif //WXLUA_BINDING_VERSION > 23 // --------------------------------------------------------------------------- *************** *** 41,46 **** - // bind wxLuaBinding_wxadv to a single wxLuaState - extern WXDLLIMPEXP_BINDWXADV bool wxLuaBinding_wxadv_bind(const wxLuaState& wxlState); // initialize wxLuaBinding_wxadv for all wxLuaStates extern WXDLLIMPEXP_BINDWXADV bool wxLuaBinding_wxadv_init(); --- 41,44 ---- Index: wxcore_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxcore_bind.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxcore_bind.h 23 Jan 2008 06:43:35 -0000 1.11 --- wxcore_bind.h 24 Jan 2008 00:18:15 -0000 1.12 *************** *** 38,44 **** // 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 // --------------------------------------------------------------------------- --- 38,44 ---- // the current version of the bindings. // See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h' ! #if WXLUA_BINDING_VERSION > 23 # error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." ! #endif //WXLUA_BINDING_VERSION > 23 // --------------------------------------------------------------------------- *************** *** 58,63 **** - // bind wxLuaBinding_wxcore to a single wxLuaState - extern WXDLLIMPEXP_BINDWXCORE bool wxLuaBinding_wxcore_bind(const wxLuaState& wxlState); // initialize wxLuaBinding_wxcore for all wxLuaStates extern WXDLLIMPEXP_BINDWXCORE bool wxLuaBinding_wxcore_init(); --- 58,61 ---- Index: wxrichtext_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxrichtext_bind.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxrichtext_bind.h 23 Jan 2008 06:43:35 -0000 1.10 --- wxrichtext_bind.h 24 Jan 2008 00:18:16 -0000 1.11 *************** *** 21,27 **** // 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 // --------------------------------------------------------------------------- --- 21,27 ---- // the current version of the bindings. // See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h' ! #if WXLUA_BINDING_VERSION > 23 # error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." ! #endif //WXLUA_BINDING_VERSION > 23 // --------------------------------------------------------------------------- *************** *** 41,46 **** - // bind wxLuaBinding_wxrichtext to a single wxLuaState - extern WXDLLIMPEXP_BINDWXRICHTEXT bool wxLuaBinding_wxrichtext_bind(const wxLuaState& wxlState); // initialize wxLuaBinding_wxrichtext for all wxLuaStates extern WXDLLIMPEXP_BINDWXRICHTEXT bool wxLuaBinding_wxrichtext_init(); --- 41,44 ---- Index: wxxrc_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxxrc_bind.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxxrc_bind.h 23 Jan 2008 06:43:35 -0000 1.10 --- wxxrc_bind.h 24 Jan 2008 00:18:16 -0000 1.11 *************** *** 21,27 **** // 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 // --------------------------------------------------------------------------- --- 21,27 ---- // the current version of the bindings. // See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h' ! #if WXLUA_BINDING_VERSION > 23 # error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." ! #endif //WXLUA_BINDING_VERSION > 23 // --------------------------------------------------------------------------- *************** *** 41,46 **** - // bind wxLuaBinding_wxxrc to a single wxLuaState - extern WXDLLIMPEXP_BINDWXXRC bool wxLuaBinding_wxxrc_bind(const wxLuaState& wxlState); // initialize wxLuaBinding_wxxrc for all wxLuaStates extern WXDLLIMPEXP_BINDWXXRC bool wxLuaBinding_wxxrc_init(); --- 41,44 ---- Index: wxnet_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxnet_bind.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxnet_bind.h 23 Jan 2008 06:43:35 -0000 1.10 --- wxnet_bind.h 24 Jan 2008 00:18:16 -0000 1.11 *************** *** 21,27 **** // 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 // --------------------------------------------------------------------------- --- 21,27 ---- // the current version of the bindings. // See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h' ! #if WXLUA_BINDING_VERSION > 23 # error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." ! #endif //WXLUA_BINDING_VERSION > 23 // --------------------------------------------------------------------------- *************** *** 41,46 **** - // bind wxLuaBinding_wxnet to a single wxLuaState - extern WXDLLIMPEXP_BINDWXNET bool wxLuaBinding_wxnet_bind(const wxLuaState& wxlState); // initialize wxLuaBinding_wxnet for all wxLuaStates extern WXDLLIMPEXP_BINDWXNET bool wxLuaBinding_wxnet_init(); --- 41,44 ---- Index: wxbase_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxbase_bind.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxbase_bind.h 23 Jan 2008 06:43:35 -0000 1.11 --- wxbase_bind.h 24 Jan 2008 00:18:15 -0000 1.12 *************** *** 20,26 **** // 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 // --------------------------------------------------------------------------- --- 20,26 ---- // the current version of the bindings. // See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h' ! #if WXLUA_BINDING_VERSION > 23 # error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." ! #endif //WXLUA_BINDING_VERSION > 23 // --------------------------------------------------------------------------- *************** *** 40,45 **** - // bind wxLuaBinding_wxbase to a single wxLuaState - extern WXDLLIMPEXP_BINDWXBASE bool wxLuaBinding_wxbase_bind(const wxLuaState& wxlState); // initialize wxLuaBinding_wxbase for all wxLuaStates extern WXDLLIMPEXP_BINDWXBASE bool wxLuaBinding_wxbase_init(); --- 40,43 ---- Index: wxmedia_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxmedia_bind.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxmedia_bind.h 23 Jan 2008 06:43:35 -0000 1.10 --- wxmedia_bind.h 24 Jan 2008 00:18:16 -0000 1.11 *************** *** 22,28 **** // 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 // --------------------------------------------------------------------------- --- 22,28 ---- // the current version of the bindings. // See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h' ! #if WXLUA_BINDING_VERSION > 23 # error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." ! #endif //WXLUA_BINDING_VERSION > 23 // --------------------------------------------------------------------------- *************** *** 42,47 **** - // bind wxLuaBinding_wxmedia to a single wxLuaState - extern WXDLLIMPEXP_BINDWXMEDIA bool wxLuaBinding_wxmedia_bind(const wxLuaState& wxlState); // initialize wxLuaBinding_wxmedia for all wxLuaStates extern WXDLLIMPEXP_BINDWXMEDIA bool wxLuaBinding_wxmedia_init(); --- 42,45 ---- Index: wxgl_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxgl_bind.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxgl_bind.h 23 Jan 2008 06:43:35 -0000 1.10 --- wxgl_bind.h 24 Jan 2008 00:18:15 -0000 1.11 *************** *** 21,27 **** // 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 // --------------------------------------------------------------------------- --- 21,27 ---- // the current version of the bindings. // See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h' ! #if WXLUA_BINDING_VERSION > 23 # error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." ! #endif //WXLUA_BINDING_VERSION > 23 // --------------------------------------------------------------------------- *************** *** 41,46 **** - // bind wxLuaBinding_wxgl to a single wxLuaState - extern WXDLLIMPEXP_BINDWXGL bool wxLuaBinding_wxgl_bind(const wxLuaState& wxlState); // initialize wxLuaBinding_wxgl for all wxLuaStates extern WXDLLIMPEXP_BINDWXGL bool wxLuaBinding_wxgl_init(); --- 41,44 ---- Index: wxstc_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxstc_bind.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxstc_bind.h 23 Jan 2008 06:43:35 -0000 1.10 --- wxstc_bind.h 24 Jan 2008 00:18:16 -0000 1.11 *************** *** 21,27 **** // 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 // --------------------------------------------------------------------------- --- 21,27 ---- // the current version of the bindings. // See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h' ! #if WXLUA_BINDING_VERSION > 23 # error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." ! #endif //WXLUA_BINDING_VERSION > 23 // --------------------------------------------------------------------------- *************** *** 41,46 **** - // bind wxLuaBinding_wxstc to a single wxLuaState - extern WXDLLIMPEXP_BINDWXSTC bool wxLuaBinding_wxstc_bind(const wxLuaState& wxlState); // initialize wxLuaBinding_wxstc for all wxLuaStates extern WXDLLIMPEXP_BINDWXSTC bool wxLuaBinding_wxstc_init(); --- 41,44 ---- Index: wxaui_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxaui_bind.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxaui_bind.h 23 Jan 2008 06:43:35 -0000 1.11 --- wxaui_bind.h 24 Jan 2008 00:18:15 -0000 1.12 *************** *** 21,27 **** // 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 // --------------------------------------------------------------------------- --- 21,27 ---- // the current version of the bindings. // See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h' ! #if WXLUA_BINDING_VERSION > 23 # error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." ! #endif //WXLUA_BINDING_VERSION > 23 // --------------------------------------------------------------------------- *************** *** 41,46 **** - // bind wxLuaBinding_wxaui to a single wxLuaState - extern WXDLLIMPEXP_BINDWXAUI bool wxLuaBinding_wxaui_bind(const wxLuaState& wxlState); // initialize wxLuaBinding_wxaui for all wxLuaStates extern WXDLLIMPEXP_BINDWXAUI bool wxLuaBinding_wxaui_init(); --- 41,44 ---- Index: wxhtml_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxhtml_bind.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wxhtml_bind.h 23 Jan 2008 06:43:35 -0000 1.11 --- wxhtml_bind.h 24 Jan 2008 00:18:16 -0000 1.12 *************** *** 21,27 **** // 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 // --------------------------------------------------------------------------- --- 21,27 ---- // the current version of the bindings. // See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h' ! #if WXLUA_BINDING_VERSION > 23 # error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." ! #endif //WXLUA_BINDING_VERSION > 23 // --------------------------------------------------------------------------- *************** *** 41,46 **** - // bind wxLuaBinding_wxhtml to a single wxLuaState - extern WXDLLIMPEXP_BINDWXHTML bool wxLuaBinding_wxhtml_bind(const wxLuaState& wxlState); // initialize wxLuaBinding_wxhtml for all wxLuaStates extern WXDLLIMPEXP_BINDWXHTML bool wxLuaBinding_wxhtml_init(); --- 41,44 ---- Index: wxxml_bind.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/include/wxxml_bind.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxxml_bind.h 23 Jan 2008 06:43:35 -0000 1.10 --- wxxml_bind.h 24 Jan 2008 00:18:16 -0000 1.11 *************** *** 21,27 **** // 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 // --------------------------------------------------------------------------- --- 21,27 ---- // the current version of the bindings. // See 'bindings/genwxbind.lua' and 'modules/wxlua/include/wxldefs.h' ! #if WXLUA_BINDING_VERSION > 23 # error "The WXLUA_BINDING_VERSION in the bindings is too old, regenerate bindings." ! #endif //WXLUA_BINDING_VERSION > 23 // --------------------------------------------------------------------------- *************** *** 41,46 **** - // bind wxLuaBinding_wxxml to a single wxLuaState - extern WXDLLIMPEXP_BINDWXXML bool wxLuaBinding_wxxml_bind(const wxLuaState& wxlState); // initialize wxLuaBinding_wxxml for all wxLuaStates extern WXDLLIMPEXP_BINDWXXML bool wxLuaBinding_wxxml_init(); --- 41,44 ---- |