avoid needless Unicode<->MB conversions in Unix wxExecute(); simplify the code; provide both versions taking char** and wchar_t** for compatibility; also use wxMacExecute() (renamed to wxMacLaunch() to avoid confusion) from all wxExecute() overloads but don't use it if wxEXEC_SYNC was requested as it doesn't support it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -347,10 +347,15 @@ enum
|
||||
// If flags contain wxEXEC_SYNC, return -1 on failure and the exit code of the
|
||||
// process if everything was ok. Otherwise (i.e. if wxEXEC_ASYNC), return 0 on
|
||||
// failure and the PID of the launched process if ok.
|
||||
WXDLLIMPEXP_BASE long wxExecute(wxChar **argv, int flags = wxEXEC_ASYNC,
|
||||
wxProcess *process = (wxProcess *) NULL);
|
||||
WXDLLIMPEXP_BASE long wxExecute(const wxString& command, int flags = wxEXEC_ASYNC,
|
||||
wxProcess *process = (wxProcess *) NULL);
|
||||
WXDLLIMPEXP_BASE long wxExecute(wchar_t **argv,
|
||||
int flags = wxEXEC_ASYNC,
|
||||
wxProcess *process = NULL);
|
||||
WXDLLIMPEXP_BASE long wxExecute(char **argv,
|
||||
int flags = wxEXEC_ASYNC,
|
||||
wxProcess *process = NULL);
|
||||
WXDLLIMPEXP_BASE long wxExecute(const wxString& command,
|
||||
int flags = wxEXEC_ASYNC,
|
||||
wxProcess *process = NULL);
|
||||
|
||||
// execute the command capturing its output into an array line by line, this is
|
||||
// always synchronous
|
||||
|
Reference in New Issue
Block a user