diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-11-17 17:25:33 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2017-11-17 17:25:33 +0000 |
| commit | 853a716610ae1f393e05aceb27b38b9007c39701 (patch) | |
| tree | 7f0ee6a1e929b766d780dcf8a0cfcb389feca8d3 /src | |
| parent | f300e00f7962742166670cc0738a5e481ab9087e (diff) | |
Replace remaining calls of getenv() with fl_getenv().
Note: don't use fl_getenv() in Fl_System_Driver and derived classes.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12563 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx | 4 | ||||
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx | 4 | ||||
| -rw-r--r-- | src/drivers/X11/Fl_X11_Screen_Driver.cxx | 2 | ||||
| -rw-r--r-- | src/drivers/X11/Fl_X11_System_Driver.cxx | 6 |
4 files changed, 8 insertions, 8 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx index 8856f8cfe..7c8119ca1 100644 --- a/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx +++ b/src/drivers/Cocoa/Fl_Cocoa_Screen_Driver.cxx @@ -3,7 +3,7 @@ // // Definition of Apple Cocoa Screen interface. // -// Copyright 1998-2016 by Bill Spitzak and others. +// Copyright 1998-2017 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -228,7 +228,7 @@ void Fl_Cocoa_Screen_Driver::get_system_colors() const char *Fl_Cocoa_Screen_Driver::get_system_scheme() { - return getenv("FLTK_SCHEME"); + return fl_getenv("FLTK_SCHEME"); } diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx index 2582cbd17..d4fed5922 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx @@ -3,7 +3,7 @@ // // Definition of MSWindows Win32/64 Screen interface // -// Copyright 1998-2016 by Bill Spitzak and others. +// Copyright 1998-2017 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -356,7 +356,7 @@ void Fl_WinAPI_Screen_Driver::get_system_colors() const char *Fl_WinAPI_Screen_Driver::get_system_scheme() { - return getenv("FLTK_SCHEME"); + return fl_getenv("FLTK_SCHEME"); } diff --git a/src/drivers/X11/Fl_X11_Screen_Driver.cxx b/src/drivers/X11/Fl_X11_Screen_Driver.cxx index 676149ffb..05e17ddcc 100644 --- a/src/drivers/X11/Fl_X11_Screen_Driver.cxx +++ b/src/drivers/X11/Fl_X11_Screen_Driver.cxx @@ -617,7 +617,7 @@ void Fl_X11_Screen_Driver::get_system_colors() const char *Fl_X11_Screen_Driver::get_system_scheme() { const char *s = 0L; - if ((s = getenv("FLTK_SCHEME")) == NULL) { + if ((s = fl_getenv("FLTK_SCHEME")) == NULL) { const char* key = 0; if (Fl::first_window()) key = Fl::first_window()->xclass(); if (!key) key = "fltk"; diff --git a/src/drivers/X11/Fl_X11_System_Driver.cxx b/src/drivers/X11/Fl_X11_System_Driver.cxx index ff4812edb..491e08226 100644 --- a/src/drivers/X11/Fl_X11_System_Driver.cxx +++ b/src/drivers/X11/Fl_X11_System_Driver.cxx @@ -4,7 +4,7 @@ // Definition of Posix system driver // for the Fast Light Tool Kit (FLTK). // -// Copyright 2010-2016 by Bill Spitzak and others. +// Copyright 2010-2017 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -93,7 +93,7 @@ static char *path_find(const char *program, char *filename, int filesize) { *end; // End of filename buffer - if ((path = getenv("PATH")) == NULL) path = "/bin:/usr/bin"; + if ((path = fl_getenv("PATH")) == NULL) path = "/bin:/usr/bin"; for (ptr = filename, end = filename + filesize - 1; *path; path ++) { if (*path == ':') { @@ -401,7 +401,7 @@ char *Fl_X11_System_Driver::preference_rootnode(Fl_Preferences *prefs, Fl_Prefer const char *e; switch (root) { case Fl_Preferences::USER: - if ((e = ::getenv("HOME")) != NULL) { + if ((e = getenv("HOME")) != NULL) { strlcpy(filename, e, sizeof(filename)); if (filename[strlen(filename)-1] != '/') { |
