From: John L. <jr...@us...> - 2007-06-06 03:53:44
|
Update of /cvsroot/wxlua/wxLua/modules/wxbindstc/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv25933/modules/wxbindstc/src Modified Files: stc.cpp Log Message: Switch s_wxluaarg_Enumeration to s_wxluaarg_Enum Add the rest of the LUA_TXXX types as s_wxluaarg_XXX and create #defines as well as functions to verify them with the result of lua_type() Unify all of the wxlua_isXXXtype functions to all call the same function Get rid of wxLuaStringToLongHashMap in wxlstate.h and don't use it anymore in wxLuaCheckStack since we can just use a wxSortedArrayString Remove wxLuaState::GetBaseLuaClass since it wasn't used anywhere Cleanup wxLuaState::CallOverloadedFunction to use new check function Index: stc.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbindstc/src/stc.cpp,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** stc.cpp 5 Jun 2007 21:07:24 -0000 1.33 --- stc.cpp 6 Jun 2007 03:53:39 -0000 1.34 *************** *** 7623,7627 **** } ! static wxLuaArgTag s_wxluatagArray_wxLua_wxStyledTextCtrl_StyleSetFontAttr[] = { &s_wxluatag_wxStyledTextCtrl, &s_wxluaarg_Number, &s_wxluaarg_Number, &s_wxluaarg_String, &s_wxluaarg_Boolean, &s_wxluaarg_Boolean, &s_wxluaarg_Boolean, &s_wxluaarg_Enumeration, 0 }; static int LUACALL wxLua_wxStyledTextCtrl_StyleSetFontAttr(lua_State *L); static WXLUAMETHOD_CFUNC s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetFontAttr[1] = {{ wxLua_wxStyledTextCtrl_StyleSetFontAttr, WXLUAMETHOD_METHOD, 7, 8, s_wxluatagArray_wxLua_wxStyledTextCtrl_StyleSetFontAttr }}; --- 7623,7627 ---- } ! static wxLuaArgTag s_wxluatagArray_wxLua_wxStyledTextCtrl_StyleSetFontAttr[] = { &s_wxluatag_wxStyledTextCtrl, &s_wxluaarg_Number, &s_wxluaarg_Number, &s_wxluaarg_String, &s_wxluaarg_Boolean, &s_wxluaarg_Boolean, &s_wxluaarg_Boolean, &s_wxluaarg_Enum, 0 }; static int LUACALL wxLua_wxStyledTextCtrl_StyleSetFontAttr(lua_State *L); static WXLUAMETHOD_CFUNC s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetFontAttr[1] = {{ wxLua_wxStyledTextCtrl_StyleSetFontAttr, WXLUAMETHOD_METHOD, 7, 8, s_wxluatagArray_wxLua_wxStyledTextCtrl_StyleSetFontAttr }}; *************** *** 7655,7659 **** } ! static wxLuaArgTag s_wxluatagArray_wxLua_wxStyledTextCtrl_StyleSetFontEncoding[] = { &s_wxluatag_wxStyledTextCtrl, &s_wxluaarg_Number, &s_wxluaarg_Enumeration, 0 }; static int LUACALL wxLua_wxStyledTextCtrl_StyleSetFontEncoding(lua_State *L); static WXLUAMETHOD_CFUNC s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetFontEncoding[1] = {{ wxLua_wxStyledTextCtrl_StyleSetFontEncoding, WXLUAMETHOD_METHOD, 3, 3, s_wxluatagArray_wxLua_wxStyledTextCtrl_StyleSetFontEncoding }}; --- 7655,7659 ---- } ! static wxLuaArgTag s_wxluatagArray_wxLua_wxStyledTextCtrl_StyleSetFontEncoding[] = { &s_wxluatag_wxStyledTextCtrl, &s_wxluaarg_Number, &s_wxluaarg_Enum, 0 }; static int LUACALL wxLua_wxStyledTextCtrl_StyleSetFontEncoding(lua_State *L); static WXLUAMETHOD_CFUNC s_wxluafunc_wxLua_wxStyledTextCtrl_StyleSetFontEncoding[1] = {{ wxLua_wxStyledTextCtrl_StyleSetFontEncoding, WXLUAMETHOD_METHOD, 3, 3, s_wxluatagArray_wxLua_wxStyledTextCtrl_StyleSetFontEncoding }}; *************** *** 9486,9490 **** #if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP ! static wxLuaArgTag s_wxluatagArray_wxLua_wxStyledTextEvent_SetDragResult[] = { &s_wxluatag_wxStyledTextEvent, &s_wxluaarg_Enumeration, 0 }; static int LUACALL wxLua_wxStyledTextEvent_SetDragResult(lua_State *L); static WXLUAMETHOD_CFUNC s_wxluafunc_wxLua_wxStyledTextEvent_SetDragResult[1] = {{ wxLua_wxStyledTextEvent_SetDragResult, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxStyledTextEvent_SetDragResult }}; --- 9486,9490 ---- #if wxLUA_USE_wxDragDrop && wxUSE_DRAG_AND_DROP ! static wxLuaArgTag s_wxluatagArray_wxLua_wxStyledTextEvent_SetDragResult[] = { &s_wxluatag_wxStyledTextEvent, &s_wxluaarg_Enum, 0 }; static int LUACALL wxLua_wxStyledTextEvent_SetDragResult(lua_State *L); static WXLUAMETHOD_CFUNC s_wxluafunc_wxLua_wxStyledTextEvent_SetDragResult[1] = {{ wxLua_wxStyledTextEvent_SetDragResult, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxStyledTextEvent_SetDragResult }}; |