From: John L. <jr...@us...> - 2007-02-07 18:39:42
|
Update of /cvsroot/wxlua/wxLua/apps/wxluacan/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv4861/wxLua/apps/wxluacan/src Modified Files: wxluacan.cpp wxluacan_bind.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: wxluacan.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/apps/wxluacan/src/wxluacan.cpp,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** wxluacan.cpp 7 Feb 2007 01:45:01 -0000 1.18 --- wxluacan.cpp 7 Feb 2007 18:39:06 -0000 1.19 *************** *** 64,68 **** } - static wxLuaArgTag s_wxluatagArray_wxLua_wxlCanObj_GetX[] = { 0 }; // double GetX() static int LUACALL wxLua_wxlCanObj_GetX(lua_State *L) --- 64,67 ---- *************** *** 80,84 **** } - static wxLuaArgTag s_wxluatagArray_wxLua_wxlCanObj_GetY[] = { 0 }; // double GetY() static int LUACALL wxLua_wxlCanObj_GetY(lua_State *L) --- 79,82 ---- *************** *** 173,178 **** { LuaConstructor, "wxlCanObj", wxLua_wxlCanObj_constructor, 2, 0, s_wxluatagArray_wxLua_wxlCanObj_constructor }, { LuaMethod, "SetPos", wxLua_wxlCanObj_SetPos, 2, 2, s_wxluatagArray_wxLua_wxlCanObj_SetPos }, ! { LuaMethod, "GetX", wxLua_wxlCanObj_GetX, 0, 0, s_wxluatagArray_wxLua_wxlCanObj_GetX }, ! { LuaMethod, "GetY", wxLua_wxlCanObj_GetY, 0, 0, s_wxluatagArray_wxLua_wxlCanObj_GetY }, { LuaMethod, "SetPending", wxLua_wxlCanObj_SetPending, 1, 0, s_wxluatagArray_wxLua_wxlCanObj_SetPending }, { LuaMethod, "AddObject", wxLua_wxlCanObj_AddObject, 1, 1, s_wxluatagArray_wxLua_wxlCanObj_AddObject }, --- 171,176 ---- { LuaConstructor, "wxlCanObj", wxLua_wxlCanObj_constructor, 2, 0, s_wxluatagArray_wxLua_wxlCanObj_constructor }, { LuaMethod, "SetPos", wxLua_wxlCanObj_SetPos, 2, 2, s_wxluatagArray_wxLua_wxlCanObj_SetPos }, ! { LuaMethod, "GetX", wxLua_wxlCanObj_GetX, 0, 0, s_wxluaargArray_None }, ! { LuaMethod, "GetY", wxLua_wxlCanObj_GetY, 0, 0, s_wxluaargArray_None }, { LuaMethod, "SetPending", wxLua_wxlCanObj_SetPending, 1, 0, s_wxluatagArray_wxLua_wxlCanObj_SetPending }, { LuaMethod, "AddObject", wxLua_wxlCanObj_AddObject, 1, 1, s_wxluatagArray_wxLua_wxlCanObj_AddObject }, *************** *** 396,400 **** } - static wxLuaArgTag s_wxluatagArray_wxLua_wxlCan_GetYaxis[] = { 0 }; // bool GetYaxis() static int LUACALL wxLua_wxlCan_GetYaxis(lua_State *L) --- 394,397 ---- *************** *** 412,416 **** } - static wxLuaArgTag s_wxluatagArray_wxLua_wxlCan_GetCmdh[] = { 0 }; // wxlLuaCanCmd* GetCmdh() static int LUACALL wxLua_wxlCan_GetCmdh(lua_State *L) --- 409,412 ---- *************** *** 466,471 **** WXLUAMETHOD wxlCan_methods[] = { { LuaMethod, "AddObject", wxLua_wxlCan_AddObject, 1, 1, s_wxluatagArray_wxLua_wxlCan_AddObject }, ! { LuaMethod, "GetYaxis", wxLua_wxlCan_GetYaxis, 0, 0, s_wxluatagArray_wxLua_wxlCan_GetYaxis }, ! { LuaMethod, "GetCmdh", wxLua_wxlCan_GetCmdh, 0, 0, s_wxluatagArray_wxLua_wxlCan_GetCmdh }, { LuaDelete, "wxlCan", wxLua_wxlCan_destructor, 0, 0, s_wxluaargArray_None }, --- 462,467 ---- WXLUAMETHOD wxlCan_methods[] = { { LuaMethod, "AddObject", wxLua_wxlCan_AddObject, 1, 1, s_wxluatagArray_wxLua_wxlCan_AddObject }, ! { LuaMethod, "GetYaxis", wxLua_wxlCan_GetYaxis, 0, 0, s_wxluaargArray_None }, ! { LuaMethod, "GetCmdh", wxLua_wxlCan_GetCmdh, 0, 0, s_wxluaargArray_None }, { LuaDelete, "wxlCan", wxLua_wxlCan_destructor, 0, 0, s_wxluaargArray_None }, Index: wxluacan_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/apps/wxluacan/src/wxluacan_bind.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** wxluacan_bind.cpp 17 Dec 2006 07:47:14 -0000 1.12 --- wxluacan_bind.cpp 7 Feb 2007 18:39:06 -0000 1.13 *************** *** 94,98 **** - static wxLuaArgTag s_wxluatagArray_wxLua_function_GetCan[] = { 0 }; // %function wxlCan* GetCan() static int LUACALL wxLua_function_GetCan(lua_State *L) --- 94,97 ---- *************** *** 108,112 **** } - static wxLuaArgTag s_wxluatagArray_wxLua_function_GetCmdhMain[] = { 0 }; // %function wxlLuaCanCmd* GetCmdhMain() static int LUACALL wxLua_function_GetCmdhMain(lua_State *L) --- 107,110 ---- *************** *** 132,137 **** static WXLUAMETHOD functionList[] = { ! { LuaGlobal, "GetCan", wxLua_function_GetCan, 0, 0, s_wxluatagArray_wxLua_function_GetCan }, ! { LuaGlobal, "GetCmdhMain", wxLua_function_GetCmdhMain, 0, 0, s_wxluatagArray_wxLua_function_GetCmdhMain }, { LuaGlobal, 0, 0, 0, 0, s_wxluaargArray_None }, }; --- 130,135 ---- static WXLUAMETHOD functionList[] = { ! { LuaGlobal, "GetCan", wxLua_function_GetCan, 0, 0, s_wxluaargArray_None }, ! { LuaGlobal, "GetCmdhMain", wxLua_function_GetCmdhMain, 0, 0, s_wxluaargArray_None }, { LuaGlobal, 0, 0, 0, 0, s_wxluaargArray_None }, }; |