From: John L. <jr...@us...> - 2008-10-24 04:40:20
|
Update of /cvsroot/wxlua/wxLua/modules/wxbind/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv2076/wxLua/modules/wxbind/src Modified Files: wxcore_gdi.cpp wxstc_bind.cpp Log Message: Small binding generator fixes for special cases, added op_cast. Index: wxstc_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxstc_bind.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wxstc_bind.cpp 29 Jan 2008 04:22:54 -0000 1.10 --- wxstc_bind.cpp 24 Oct 2008 04:40:13 -0000 1.11 *************** *** 70,74 **** wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); // call AddTextRaw ! self->AddTextRaw(text); return 0; --- 70,74 ---- wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); // call AddTextRaw ! self->AddTextRaw((const char*)text); return 0; *************** *** 3436,3440 **** wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); // call InsertTextRaw ! self->InsertTextRaw(pos, text); return 0; --- 3436,3440 ---- wxStyledTextCtrl * self = (wxStyledTextCtrl *)wxluaT_getuserdatatype(L, 1, wxluatype_wxStyledTextCtrl); // call InsertTextRaw ! self->InsertTextRaw(pos, (const char*)text); return 0; Index: wxcore_gdi.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxcore_gdi.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** wxcore_gdi.cpp 29 Jan 2008 04:22:52 -0000 1.17 --- wxcore_gdi.cpp 24 Oct 2008 04:40:12 -0000 1.18 *************** *** 290,294 **** static int LUACALL wxLua_wxPoint_op_neg(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_neg[1] = {{ wxLua_wxPoint_op_neg, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint_op_neg }}; ! // %operator wxPoint operator-() const { return wxPoint(-x, -y); } static int LUACALL wxLua_wxPoint_op_neg(lua_State *L) { --- 290,294 ---- static int LUACALL wxLua_wxPoint_op_neg(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxPoint_op_neg[1] = {{ wxLua_wxPoint_op_neg, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxPoint_op_neg }}; ! // %operator wxPoint operator-() const //{ return wxPoint(-x, -y); } static int LUACALL wxLua_wxPoint_op_neg(lua_State *L) { |