added wxGet/Set/UnsetEnv() for Unix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-11-26 22:46:35 +00:00
parent b855ef7757
commit 8fd0d89b7d
7 changed files with 327 additions and 187 deletions

View File

@@ -59,7 +59,7 @@ class WXDLLEXPORT wxPoint;
// String functions (deprecated, use wxString)
// ----------------------------------------------------------------------------
// Useful buffer (FIXME VZ: yeah, that is. To be removed!)
// Useful buffer (FIXME VZ: To be removed!!!)
WXDLLEXPORT_DATA(extern wxChar*) wxBuffer;
// Make a copy of this string using 'new'
@@ -203,6 +203,20 @@ WXDLLEXPORT long wxGetFreeMemory();
// should wxApp::OnFatalException() be called?
WXDLLEXPORT bool wxHandleFatalExceptions(bool doit = TRUE);
// ----------------------------------------------------------------------------
// Environment variables
// ----------------------------------------------------------------------------
// wxGetenv is declared in wxchar.h, but define a wrapper/synonym for it for
// consistency with wxSetEnv
inline const wxChar *wxGetEnv(const wxString& var) { return wxGetenv(var); }
// set the env var name to the given value, return TRUE on success
WXDLLEXPORT bool wxSetEnv(const wxString& var, const wxChar *value);
// remove the env var from environment
inline bool wxUnsetEnv(const wxString& var) { return wxSetEnv(var, NULL); }
// ----------------------------------------------------------------------------
// Network and username functions.
// ----------------------------------------------------------------------------