From: John L. <jr...@us...> - 2006-12-17 07:47:21
|
Update of /cvsroot/wxlua/wxLua/modules/wxbindstc/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv28504/wxLua/modules/wxbindstc/src Modified Files: stc.cpp wxstc_bind.cpp Log Message: separate out the wxluatag arrays and use pointer in WXLUAMETHOD Index: wxstc_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbindstc/src/wxstc_bind.cpp,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** wxstc_bind.cpp 14 Dec 2006 01:01:26 -0000 1.16 --- wxstc_bind.cpp 17 Dec 2006 07:47:17 -0000 1.17 *************** *** 1432,1436 **** static WXLUAMETHOD functionList[] = { ! { LuaGlobal, 0, 0, 0, 0, {0} }, }; count = (sizeof(functionList)/sizeof(functionList[0])) - 1; --- 1432,1436 ---- static WXLUAMETHOD functionList[] = { ! { LuaGlobal, 0, 0, 0, 0, s_wxluaargArray_None }, }; count = (sizeof(functionList)/sizeof(functionList[0])) - 1; Index: stc.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbindstc/src/stc.cpp,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** stc.cpp 14 Dec 2006 01:01:26 -0000 1.19 --- stc.cpp 17 Dec 2006 07:47:17 -0000 1.20 *************** *** 29,32 **** --- 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) *************** *** 47,50 **** --- 48,52 ---- } [...5260 lines suppressed...] ! { LuaSetProp, "X", wxLua_wxStyledTextEvent_SetX, 1, 1, s_wxluaargArray_None }, ! { LuaGetProp, "Y", wxLua_wxStyledTextEvent_GetY, 0, 0, s_wxluaargArray_None }, ! { LuaSetProp, "Y", wxLua_wxStyledTextEvent_SetY, 1, 1, s_wxluaargArray_None }, ! { LuaGetProp, "DragText", wxLua_wxStyledTextEvent_GetDragText, 0, 0, s_wxluaargArray_None }, ! { LuaSetProp, "DragText", wxLua_wxStyledTextEvent_SetDragText, 1, 1, s_wxluaargArray_None }, ! { LuaGetProp, "DragAllowMove", wxLua_wxStyledTextEvent_GetDragAllowMove, 0, 0, s_wxluaargArray_None }, ! { LuaSetProp, "DragAllowMove", wxLua_wxStyledTextEvent_SetDragAllowMove, 1, 1, s_wxluaargArray_None }, ! { LuaGetProp, "Shift", wxLua_wxStyledTextEvent_GetShift, 0, 0, s_wxluaargArray_None }, ! { LuaGetProp, "Control", wxLua_wxStyledTextEvent_GetControl, 0, 0, s_wxluaargArray_None }, ! { LuaGetProp, "Alt", wxLua_wxStyledTextEvent_GetAlt, 0, 0, s_wxluaargArray_None }, ! { LuaDelete, "wxStyledTextEvent", wxLua_wxStyledTextEvent_destructor, 0, 0, s_wxluaargArray_None }, ! { LuaMethod, "Delete", wxLua_wxStyledTextEvent_Delete, 0, 0, s_wxluaargArray_None }, #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 }, #endif // wxLUA_USE_wxDragDrop |