From 5dbb17e27f5a64c7390c54223abce40ae32ecaa8 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 20 Jan 2002 16:34:36 +0000 Subject: [PATCH] corrected wxKill signature, added Env methods (returning false) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/utils.cpp | 20 +++++++++++++++++++- src/mac/utils.cpp | 20 +++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/src/mac/carbon/utils.cpp b/src/mac/carbon/utils.cpp index 066f36c368..d7e671c582 100644 --- a/src/mac/carbon/utils.cpp +++ b/src/mac/carbon/utils.cpp @@ -111,12 +111,25 @@ bool wxGetUserName(char *buf, int maxSize) return TRUE; } -int wxKill(long pid, wxSignal sig) +int wxKill(long pid, wxSignal sig , wxKillError *rc ) { // TODO return 0; } +WXDLLEXPORT bool wxGetEnv(const wxString& var, wxString *value) +{ + // TODO : under classic there is no environement support, under X yes + return false ; +} + +// set the env var name to the given value, return TRUE on success +WXDLLEXPORT bool wxSetEnv(const wxString& var, const wxChar *value) +{ + // TODO : under classic there is no environement support, under X yes + return false ; +} + // // Execute a program in an Interactive Shell // @@ -470,3 +483,8 @@ wxWindow* wxFindWindowAtPoint(const wxPoint& pt) { return wxGenericFindWindowAtPoint(pt); } + +wxString wxGetOsDescription() +{ + return "MacOS" ; //TODO:define further +} \ No newline at end of file diff --git a/src/mac/utils.cpp b/src/mac/utils.cpp index 066f36c368..d7e671c582 100644 --- a/src/mac/utils.cpp +++ b/src/mac/utils.cpp @@ -111,12 +111,25 @@ bool wxGetUserName(char *buf, int maxSize) return TRUE; } -int wxKill(long pid, wxSignal sig) +int wxKill(long pid, wxSignal sig , wxKillError *rc ) { // TODO return 0; } +WXDLLEXPORT bool wxGetEnv(const wxString& var, wxString *value) +{ + // TODO : under classic there is no environement support, under X yes + return false ; +} + +// set the env var name to the given value, return TRUE on success +WXDLLEXPORT bool wxSetEnv(const wxString& var, const wxChar *value) +{ + // TODO : under classic there is no environement support, under X yes + return false ; +} + // // Execute a program in an Interactive Shell // @@ -470,3 +483,8 @@ wxWindow* wxFindWindowAtPoint(const wxPoint& pt) { return wxGenericFindWindowAtPoint(pt); } + +wxString wxGetOsDescription() +{ + return "MacOS" ; //TODO:define further +} \ No newline at end of file -- 2.47.2