From: John L. <jr...@us...> - 2008-01-29 01:39:05
|
Update of /cvsroot/wxlua/wxLua/modules/wxlua/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv28032/wxLua/modules/wxlua/src Modified Files: Makefile wxlua_bind.cpp Removed Files: wxlua.cpp Log Message: Try to speed up the build process by having only one cpp file for the smaller bindings using output_single_cpp_binding_file in the rules file. --- wxlua.cpp DELETED --- Index: Makefile =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxlua/src/Makefile,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** Makefile 16 Jul 2007 19:35:30 -0000 1.16 --- Makefile 29 Jan 2008 01:39:01 -0000 1.17 *************** *** 33,38 **** wxlcallb.cpp \ wxlstate.cpp \ ! wxlua_bind.cpp \ ! wxlua.cpp OBJECTS=$(SOURCES:.cpp=.o) --- 33,37 ---- wxlcallb.cpp \ wxlstate.cpp \ ! wxlua_bind.cpp OBJECTS=$(SOURCES:.cpp=.o) Index: wxlua_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxlua/src/wxlua_bind.cpp,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** wxlua_bind.cpp 29 Jan 2008 00:49:16 -0000 1.25 --- wxlua_bind.cpp 29 Jan 2008 01:39:01 -0000 1.26 *************** *** 1,3 **** --- 1,147 ---- // --------------------------------------------------------------------------- + // ../modules/wxlua/src/wxlua.cpp was generated by genwxbind.lua + // + // Any changes made to this file will be lost when the file is regenerated. + // --------------------------------------------------------------------------- + + #ifdef __BORLANDC__ + #pragma hdrstop + #endif + + #include "wx/wxprec.h" + + + #ifndef WX_PRECOMP + #include "wx/wx.h" + #endif + + #include "wxlua/include/wxlstate.h" + #include "wxlua/include/wxlua_bind.h" + #ifdef Above + #undef Above + #endif + #ifdef Below + #undef Below + #endif + + + // --------------------------------------------------------------------------- + // Bind class wxLuaState + // --------------------------------------------------------------------------- + + // Lua MetaTable Tag for Class 'wxLuaState' + int wxluatype_wxLuaState = WXLUA_TUNKNOWN; + + static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaState_delete[] = { &wxluatype_wxLuaState, NULL }; + static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaState_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLuaState_delete }}; + + + + // Map Lua Class Methods to C Binding Functions + wxLuaBindMethod wxLuaState_methods[] = { + { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLuaState_delete, 1, NULL }, + { 0, 0, 0, 0 }, + }; + + int wxLuaState_methodCount = sizeof(wxLuaState_methods)/sizeof(wxLuaBindMethod) - 1; + + + // --------------------------------------------------------------------------- + // Bind class wxLuaObject + // --------------------------------------------------------------------------- + + // Lua MetaTable Tag for Class 'wxLuaObject' + int wxluatype_wxLuaObject = WXLUA_TUNKNOWN; + + static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaObject_GetAllocationFlag[] = { &wxluatype_wxLuaObject, NULL }; + static int LUACALL wxLua_wxLuaObject_GetAllocationFlag(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaObject_GetAllocationFlag[1] = {{ wxLua_wxLuaObject_GetAllocationFlag, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaObject_GetAllocationFlag }}; + // int GetAllocationFlag() const + static int LUACALL wxLua_wxLuaObject_GetAllocationFlag(lua_State *L) + { + // get this + wxLuaObject * self = (wxLuaObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaObject); + // call GetAllocationFlag + int returns = (self->GetAllocationFlag()); + // push the result number + lua_pushnumber(L, returns); + + return 1; + } + + static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaObject_GetObject[] = { &wxluatype_wxLuaObject, NULL }; + static int LUACALL wxLua_wxLuaObject_GetObject(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaObject_GetObject[1] = {{ wxLua_wxLuaObject_GetObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaObject_GetObject }}; + // %override wxLua_wxLuaObject_GetObject + // void *GetObject() const + static int LUACALL wxLua_wxLuaObject_GetObject(lua_State *L) + { + // get this + wxLuaObject *self = (wxLuaObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaObject); + // call GetObject that push the item onto the stack, or nil + if (self->GetObject()) + return 1; + + return 0; + } + + + static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaObject_SetObject[] = { &wxluatype_wxLuaObject, NULL }; + static int LUACALL wxLua_wxLuaObject_SetObject(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaObject_SetObject[1] = {{ wxLua_wxLuaObject_SetObject, WXLUAMETHOD_METHOD, 1, 1, s_wxluatypeArray_wxLua_wxLuaObject_SetObject }}; + // %override wxLua_wxLuaObject_SetObject + // void SetObject(void *object) + static int LUACALL wxLua_wxLuaObject_SetObject(lua_State *L) + { + // get this + wxLuaObject *self = (wxLuaObject *)wxluaT_getuserdatatype(L, 1, wxluatype_wxLuaObject); + // call SetObject + self->SetObject(1); + // return the number of parameters + return 0; + } + + + static wxLuaArgType s_wxluatypeArray_wxLua_wxLuaObject_delete[] = { &wxluatype_wxLuaObject, NULL }; + static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaObject_delete[1] = {{ wxlua_userdata_delete, WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, 1, 1, s_wxluatypeArray_wxLua_wxLuaObject_delete }}; + + static int LUACALL wxLua_wxLuaObject_constructor(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxLuaObject_constructor[1] = {{ wxLua_wxLuaObject_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, g_wxluaargtypeArray_None }}; + // %override wxLua_wxLuaObject_constructor + // wxLuaObject(void *object) + static int LUACALL wxLua_wxLuaObject_constructor(lua_State *L) + { + wxLuaState wxlState(L); + + wxLuaObject *returns; + // call constructor + returns = new wxLuaObject(wxlState, 1); + // add to tracked memory list + wxluaO_addgcobject(L, returns); + // push the constructed class pointer + wxluaT_pushuserdatatype(L, returns, wxluatype_wxLuaObject); + // return the number of parameters + return 1; + } + + + + + // Map Lua Class Methods to C Binding Functions + wxLuaBindMethod wxLuaObject_methods[] = { + { "GetAllocationFlag", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaObject_GetAllocationFlag, 1, NULL }, + { "GetObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaObject_GetObject, 1, NULL }, + { "SetObject", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxLuaObject_SetObject, 1, NULL }, + { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxLuaObject_delete, 1, NULL }, + { "wxLuaObject", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxLuaObject_constructor, 1, NULL }, + { 0, 0, 0, 0 }, + }; + + int wxLuaObject_methodCount = sizeof(wxLuaObject_methods)/sizeof(wxLuaBindMethod) - 1; + + + + + // --------------------------------------------------------------------------- // ../modules/wxlua/src/wxlua_bind.cpp was generated by genwxbind.lua // |