From: John L. <jr...@us...> - 2007-02-07 18:39:17
|
Update of /cvsroot/wxlua/wxLua/modules/wxbindstc/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv4861/wxLua/modules/wxbindstc/src Modified Files: stc.cpp Log Message: Use s_wxluaargArray_None for arg array in bindings if there are no args instead of creating a new empty array for each function, { 0 }. Index: stc.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbindstc/src/stc.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** stc.cpp 7 Feb 2007 01:45:02 -0000 1.21 --- stc.cpp 7 Feb 2007 18:39:12 -0000 1.22 *************** *** 29,33 **** #if (wxCHECK_VERSION(2,7,1)) && (wxLUA_USE_wxColourPenBrush) - static wxLuaArgTag s_wxluatagArray_wxLua_wxStyledTextCtrl_GetCaretLineBackground[] = { 0 }; // %wxchkver271 wxColour GetCaretLineBackground(); static int LUACALL wxLua_wxStyledTextCtrl_GetCaretLineBackground(lua_State *L) --- 29,32 ---- *************** *** 67,71 **** #if (wxLUA_USE_wxColourPenBrush) && (!wxCHECK_VERSION(2,7,1)) [...2713 lines suppressed...] ! { LuaMethod, "GetDragText", wxLua_wxStyledTextEvent_GetDragText, 0, 0, s_wxluaargArray_None }, ! { LuaMethod, "GetDragAllowMove", wxLua_wxStyledTextEvent_GetDragAllowMove, 0, 0, s_wxluaargArray_None }, ! { LuaMethod, "GetShift", wxLua_wxStyledTextEvent_GetShift, 0, 0, s_wxluaargArray_None }, ! { LuaMethod, "GetControl", wxLua_wxStyledTextEvent_GetControl, 0, 0, s_wxluaargArray_None }, ! { LuaMethod, "GetAlt", wxLua_wxStyledTextEvent_GetAlt, 0, 0, s_wxluaargArray_None }, { LuaGetProp, "Position", wxLua_wxStyledTextEvent_GetPosition, 0, 0, s_wxluaargArray_None }, { LuaSetProp, "Position", wxLua_wxStyledTextEvent_SetPosition, 1, 1, s_wxluaargArray_None }, *************** *** 8441,8445 **** #if wxLUA_USE_wxDragDrop { LuaMethod, "SetDragResult", wxLua_wxStyledTextEvent_SetDragResult, 1, 1, s_wxluatagArray_wxLua_wxStyledTextEvent_SetDragResult }, ! { LuaMethod, "GetDragResult", wxLua_wxStyledTextEvent_GetDragResult, 0, 0, s_wxluatagArray_wxLua_wxStyledTextEvent_GetDragResult }, { LuaGetProp, "DragResult", wxLua_wxStyledTextEvent_GetDragResult, 0, 0, s_wxluaargArray_None }, { LuaSetProp, "DragResult", wxLua_wxStyledTextEvent_SetDragResult, 1, 1, s_wxluaargArray_None }, --- 8209,8213 ---- #if wxLUA_USE_wxDragDrop { LuaMethod, "SetDragResult", wxLua_wxStyledTextEvent_SetDragResult, 1, 1, s_wxluatagArray_wxLua_wxStyledTextEvent_SetDragResult }, ! { LuaMethod, "GetDragResult", wxLua_wxStyledTextEvent_GetDragResult, 0, 0, s_wxluaargArray_None }, { LuaGetProp, "DragResult", wxLua_wxStyledTextEvent_GetDragResult, 0, 0, s_wxluaargArray_None }, { LuaSetProp, "DragResult", wxLua_wxStyledTextEvent_SetDragResult, 1, 1, s_wxluaargArray_None }, |