From: John L. <jr...@us...> - 2007-05-19 02:06:19
|
Update of /cvsroot/wxlua/wxLua/bindings/wxwidgets In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv11964/wxLua/bindings/wxwidgets Modified Files: defsutil.i wx_datatypes.lua Log Message: Make wxProcess Kill and Exists functions %staticonly Remove all exception code from wxLuaSocket code (debugger code) Rename wxLuaSocket to wxLuaCSocket and move wxLuaDebuggerSocket to wxLuawxSocket we have two options C or wx sockets now... both work in 2.8 GTK2 Lots of reorganization in server and socket code Update the editor.wx.lua for new code and only Delete() the debugger server in EVT_IDLE to give it a chance to exit gracefully Index: defsutil.i =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/defsutil.i,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** defsutil.i 17 Mar 2007 19:08:09 -0000 1.39 --- defsutil.i 19 May 2007 02:05:45 -0000 1.40 *************** *** 70,73 **** --- 70,78 ---- %endenum + %enum wxKillFlags + wxKILL_NOCHILDREN + wxKILL_CHILDREN + %endenum + %class %delete %encapsulate wxProcess, wxEvtHandler wxProcess(wxEvtHandler *parent = NULL, int nId = wxID_ANY) *************** *** 75,80 **** void Detach() ! static wxKillError Kill(int pid, wxSignal sig = wxSIGTERM, int flags = wxKILL_NOCHILDREN) ! static bool Exists(int pid) //virtual void OnTerminate(int pid, int status) just handle the event instead static wxProcess *Open(const wxString& cmd, int flags = wxEXEC_ASYNC) --- 80,85 ---- void Detach() ! %staticonly wxKillError Kill(int pid, wxSignal sig = wxSIGTERM, int flags = wxKILL_NOCHILDREN) ! %staticonly bool Exists(int pid) //virtual void OnTerminate(int pid, int status) just handle the event instead static wxProcess *Open(const wxString& cmd, int flags = wxEXEC_ASYNC) *************** *** 107,111 **** %function %rename wxExecuteStdoutStderr long wxExecute(const wxString& command, wxArrayString& output, wxArrayString& errors, int flags = 0) %function void wxExit() ! int wxKill(long pid, int sig = wxSIGTERM, wxKillError *rc = NULL, int flags = 0) %function unsigned long wxGetProcessId() %function bool wxShell(const wxString& command = "") --- 112,116 ---- %function %rename wxExecuteStdoutStderr long wxExecute(const wxString& command, wxArrayString& output, wxArrayString& errors, int flags = 0) %function void wxExit() ! %function int wxKill(long pid, wxSignal sig = wxSIGTERM, wxKillError *rc = NULL, int flags = 0) %function unsigned long wxGetProcessId() %function bool wxShell(const wxString& command = "") *************** *** 602,607 **** //----------------------------------------------------------------------------- // wxBusyCursorSuspender - we don't wrap this since lua's garbage collector doesn't ! // automatically collect items when they go out of scope so you would have to ! // Delete this anyway which is just as easy as //%class %delete %noclassinfo %encapsulate wxBusyCursorSuspender --- 607,612 ---- //----------------------------------------------------------------------------- // wxBusyCursorSuspender - we don't wrap this since lua's garbage collector doesn't ! // automatically collect items when they go out of scope so you would have to ! // Delete this anyway which is just as easy as //%class %delete %noclassinfo %encapsulate wxBusyCursorSuspender Index: wx_datatypes.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/wxwidgets/wx_datatypes.lua,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -d -r1.60 -r1.61 *** wx_datatypes.lua 19 Mar 2007 03:47:18 -0000 1.60 --- wx_datatypes.lua 19 May 2007 02:05:45 -0000 1.61 *************** *** 1879,1882 **** --- 1879,1888 ---- Name = "wxKillError", }, + wxKillFlags = { + Condition = "wxLUA_USE_wxProcess", + DefType = "enum", + IsNumber = true, + Name = "wxKillFlags", + }, wxLanguage = { Condition = "wxUSE_INTL", |