From: John L. <jr...@us...> - 2007-02-26 01:57:26
|
Update of /cvsroot/wxlua/wxLua/modules/wxbindstc/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv32575/wxLua/modules/wxbindstc/src Modified Files: stc.cpp wxstc_bind.cpp Log Message: Change WXLUACLASS to keep a pointer to the base class's WXLUACLASS not it's tag for faster lookup. cleanup of the headers, more comments Index: wxstc_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbindstc/src/wxstc_bind.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** wxstc_bind.cpp 17 Dec 2006 07:47:17 -0000 1.17 --- wxstc_bind.cpp 26 Feb 2007 01:57:06 -0000 1.18 *************** *** 1,7 **** ! // ---------------------------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file is regenerated. ! // ---------------------------------------------------------------------------- #ifdef __BORLANDC__ --- 1,7 ---- ! // --------------------------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file is regenerated. ! // --------------------------------------------------------------------------- #ifdef __BORLANDC__ *************** *** 20,26 **** ! // ---------------------------------------------------------------------------- // wxLuaGetEventList_wxstc() is called to register events ! // ---------------------------------------------------------------------------- WXLUAEVENT* wxLuaGetEventList_wxstc(size_t &count) --- 20,26 ---- ! // --------------------------------------------------------------------------- // wxLuaGetEventList_wxstc() is called to register events ! // --------------------------------------------------------------------------- WXLUAEVENT* wxLuaGetEventList_wxstc(size_t &count) *************** *** 65,71 **** } ! // ---------------------------------------------------------------------------- // wxLuaGetDefineList_wxstc() is called to register defines and enums ! // ---------------------------------------------------------------------------- WXLUADEFINE* wxLuaGetDefineList_wxstc(size_t &count) --- 65,71 ---- } ! // --------------------------------------------------------------------------- // wxLuaGetDefineList_wxstc() is called to register defines and enums ! // --------------------------------------------------------------------------- WXLUADEFINE* wxLuaGetDefineList_wxstc(size_t &count) *************** *** 73,79 **** static WXLUADEFINE defineList[] = { ! // -------------------------------------------------------------------- // %define ! // -------------------------------------------------------------------- #if !wxCHECK_VERSION(2,5,0) --- 73,79 ---- static WXLUADEFINE defineList[] = { ! // ------------------------------------------------------------------- // %define ! // ------------------------------------------------------------------- #if !wxCHECK_VERSION(2,5,0) *************** *** 1377,1383 **** #endif // wxCHECK_VERSION(2,5,0) ! // -------------------------------------------------------------------- // %enum ! // -------------------------------------------------------------------- { 0, 0 }, --- 1377,1383 ---- #endif // wxCHECK_VERSION(2,5,0) ! // ------------------------------------------------------------------- // %enum ! // ------------------------------------------------------------------- { 0, 0 }, *************** *** 1387,1394 **** } ! // ---------------------------------------------------------------------------- // wxLuaGetStringList_wxstc() is called to register strings ! // ---------------------------------------------------------------------------- WXLUASTRING* wxLuaGetStringList_wxstc(size_t &count) --- 1387,1394 ---- } ! // --------------------------------------------------------------------------- // wxLuaGetStringList_wxstc() is called to register strings ! // --------------------------------------------------------------------------- WXLUASTRING* wxLuaGetStringList_wxstc(size_t &count) *************** *** 1396,1402 **** static WXLUASTRING stringList[] = { ! // -------------------------------------------------------------------- // %define %string ! // -------------------------------------------------------------------- { 0, 0 }, --- 1396,1402 ---- static WXLUASTRING stringList[] = { ! // ------------------------------------------------------------------- // %define %string ! // ------------------------------------------------------------------- { 0, 0 }, *************** *** 1406,1412 **** } ! // ---------------------------------------------------------------------------- // wxLuaGetObjectList_wxstc() is called to register object and pointer bindings ! // ---------------------------------------------------------------------------- WXLUAOBJECT* wxLuaGetObjectList_wxstc(size_t &count) --- 1406,1412 ---- } ! // --------------------------------------------------------------------------- // wxLuaGetObjectList_wxstc() is called to register object and pointer bindings ! // --------------------------------------------------------------------------- WXLUAOBJECT* wxLuaGetObjectList_wxstc(size_t &count) *************** *** 1420,1430 **** } ! // ---------------------------------------------------------------------------- // wxLuaGetFunctionList_wxstc() is called to register global functions ! // ---------------------------------------------------------------------------- ! // ---------------------------------------------------------------------------- // wxLuaGetFunctionList_wxstc() is called to register global functions ! // ---------------------------------------------------------------------------- WXLUAMETHOD* wxLuaGetFunctionList_wxstc(size_t &count) --- 1420,1430 ---- } ! // --------------------------------------------------------------------------- // wxLuaGetFunctionList_wxstc() is called to register global functions ! // --------------------------------------------------------------------------- ! // --------------------------------------------------------------------------- // wxLuaGetFunctionList_wxstc() is called to register global functions ! // --------------------------------------------------------------------------- WXLUAMETHOD* wxLuaGetFunctionList_wxstc(size_t &count) *************** *** 1440,1446 **** ! // ---------------------------------------------------------------------------- // wxLuaGetClassList_wxstc() is called to register classes ! // ---------------------------------------------------------------------------- WXLUACLASS* wxLuaGetClassList_wxstc(size_t &count) --- 1440,1446 ---- ! // --------------------------------------------------------------------------- // wxLuaGetClassList_wxstc() is called to register classes ! // --------------------------------------------------------------------------- WXLUACLASS* wxLuaGetClassList_wxstc(size_t &count) *************** *** 1448,1453 **** static WXLUACLASS classList[] = { ! { "wxStyledTextCtrl", wxStyledTextCtrl_methods, wxStyledTextCtrl_methodCount, -1, CLASSINFO(wxStyledTextCtrl), &s_wxluatag_wxStyledTextCtrl, "wxControl" }, ! { "wxStyledTextEvent", wxStyledTextEvent_methods, wxStyledTextEvent_methodCount, -1, CLASSINFO(wxStyledTextEvent), &s_wxluatag_wxStyledTextEvent, "wxCommandEvent" }, { 0, 0, 0, 0, 0, 0, 0 }, }; --- 1448,1453 ---- static WXLUACLASS classList[] = { ! { "wxStyledTextCtrl", wxStyledTextCtrl_methods, wxStyledTextCtrl_methodCount, CLASSINFO(wxStyledTextCtrl), &s_wxluatag_wxStyledTextCtrl, "wxControl", NULL }, ! { "wxStyledTextEvent", wxStyledTextEvent_methods, wxStyledTextEvent_methodCount, CLASSINFO(wxStyledTextEvent), &s_wxluatag_wxStyledTextEvent, "wxCommandEvent", NULL }, { 0, 0, 0, 0, 0, 0, 0 }, }; *************** *** 1458,1464 **** ! // ---------------------------------------------------------------------------- // wxLuaGetClassList_wxstc() is called to register classes ! // ---------------------------------------------------------------------------- // binding class --- 1458,1464 ---- ! // --------------------------------------------------------------------------- // wxLuaGetClassList_wxstc() is called to register classes ! // --------------------------------------------------------------------------- // binding class Index: stc.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbindstc/src/stc.cpp,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** stc.cpp 23 Feb 2007 04:35:33 -0000 1.25 --- stc.cpp 26 Feb 2007 01:57:05 -0000 1.26 *************** *** 1,7 **** ! // ---------------------------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file is regenerated. ! // ---------------------------------------------------------------------------- #ifdef __BORLANDC__ --- 1,7 ---- ! // --------------------------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file is regenerated. ! // --------------------------------------------------------------------------- #ifdef __BORLANDC__ *************** *** 20,26 **** ! // ------------------------------------------------------------------------------------------------- // Bind class wxStyledTextCtrl ! // ------------------------------------------------------------------------------------------------- // Lua MetaTable Tag for Class 'wxStyledTextCtrl' --- 20,26 ---- ! // --------------------------------------------------------------------------- // Bind class wxStyledTextCtrl ! // --------------------------------------------------------------------------- // Lua MetaTable Tag for Class 'wxStyledTextCtrl' *************** *** 7414,7420 **** int wxStyledTextCtrl_methodCount = sizeof(wxStyledTextCtrl_methods)/sizeof(wxStyledTextCtrl_methods[0]); ! // ------------------------------------------------------------------------------------------------- // Bind class wxStyledTextEvent ! // ------------------------------------------------------------------------------------------------- // Lua MetaTable Tag for Class 'wxStyledTextEvent' --- 7414,7420 ---- int wxStyledTextCtrl_methodCount = sizeof(wxStyledTextCtrl_methods)/sizeof(wxStyledTextCtrl_methods[0]); ! // --------------------------------------------------------------------------- // Bind class wxStyledTextEvent ! // --------------------------------------------------------------------------- // Lua MetaTable Tag for Class 'wxStyledTextEvent' |