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:
@@ -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.
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user