Update of /cvsroot/wxlua/wxLua/modules/wxbindstc/src
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv22306/wxLua/modules/wxbindstc/src
Modified Files:
stc.cpp wxstc_bind.cpp
Log Message:
Use dummy wxLuaBindDefine for class member enums if they don't have any
Some formatting fixes for the generated bindings
Index: wxstc_bind.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxbindstc/src/wxstc_bind.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** wxstc_bind.cpp 6 Jun 2007 23:43:15 -0000 1.22
--- wxstc_bind.cpp 7 Jun 2007 03:22:09 -0000 1.23
***************
*** 1497,1502 ****
static wxLuaBindClass classList[] =
{
! { "wxStyledTextCtrl", wxStyledTextCtrl_methods, wxStyledTextCtrl_methodCount, CLASSINFO(wxStyledTextCtrl), &s_wxluatag_wxStyledTextCtrl, "wxControl", NULL ,wxStyledTextCtrl_enums, wxStyledTextCtrl_enumCount, },
! { "wxStyledTextEvent", wxStyledTextEvent_methods, wxStyledTextEvent_methodCount, CLASSINFO(wxStyledTextEvent), &s_wxluatag_wxStyledTextEvent, "wxCommandEvent", NULL ,wxStyledTextEvent_enums, wxStyledTextEvent_enumCount, },
{ 0, 0, 0, 0, 0, 0, 0 },
--- 1497,1502 ----
static wxLuaBindClass classList[] =
{
! { "wxStyledTextCtrl", wxStyledTextCtrl_methods, wxStyledTextCtrl_methodCount, CLASSINFO(wxStyledTextCtrl), &s_wxluatag_wxStyledTextCtrl, "wxControl", NULL ,s_wxluadefineArray_None, 0, },
! { "wxStyledTextEvent", wxStyledTextEvent_methods, wxStyledTextEvent_methodCount, CLASSINFO(wxStyledTextEvent), &s_wxluatag_wxStyledTextEvent, "wxCommandEvent", NULL ,s_wxluadefineArray_None, 0, },
{ 0, 0, 0, 0, 0, 0, 0 },
Index: stc.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxbindstc/src/stc.cpp,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** stc.cpp 6 Jun 2007 23:43:14 -0000 1.35
--- stc.cpp 7 Jun 2007 03:22:09 -0000 1.36
***************
*** 30,34 ****
static int LUACALL wxLua_wxStyledTextCtrl_AddRefDocument(lua_State *L);
static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AddRefDocument[1] = {{ wxLua_wxStyledTextCtrl_AddRefDocument, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxStyledTextCtrl_AddRefDocument }};
-
// void AddRefDocument(void* docPointer);
static int LUACALL wxLua_wxStyledTextCtrl_AddRefDocument(lua_State *L)
--- 30,33 ----
***************
*** 48,52 ****
static int LUACALL wxLua_wxStyledTextCtrl_AddText(lua_State *L);
static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextCtrl_AddText[1] = {{ wxLua_wxStyledTextCtrl_AddText, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxStyledTextCtrl_AddText }};
[...3945 lines suppressed...]
--- 9324,9327 ----
***************
*** 9833,9837 ****
static int LUACALL wxLua_wxStyledTextEvent_constructor(lua_State *L);
static wxLuaBindCFunc s_wxluafunc_wxLua_wxStyledTextEvent_constructor[1] = {{ wxLua_wxStyledTextEvent_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 2, s_wxluatagArray_wxLua_wxStyledTextEvent_constructor }};
-
// wxStyledTextEvent(wxEventType commandType = 0, int id = 0)
static int LUACALL wxLua_wxStyledTextEvent_constructor(lua_State *L)
--- 9341,9344 ----
***************
*** 9919,9926 ****
- wxLuaBindDefine wxStyledTextEvent_enums[] = {
- { NULL, 0, },
- };
-
- int wxStyledTextEvent_enumCount = sizeof(wxStyledTextEvent_enums)/sizeof(wxLuaBindDefine) - 1;
-
--- 9426,9427 ----
|