nemiver r863 - in branches/0.5: . src/common src/dbgengine
- From: dodji svn gnome org
- To: svn-commits-list gnome org
- Subject: nemiver r863 - in branches/0.5: . src/common src/dbgengine
- Date: Sat, 21 Jun 2008 12:39:39 +0000 (UTC)
Author: dodji
Date: Sat Jun 21 12:39:38 2008
New Revision: 863
URL: http://svn.gnome.org/viewvc/nemiver?rev=863&view=rev
Log:
fix #539314 â Use g_getenv instead of getenv
Modified:
branches/0.5/ChangeLog
branches/0.5/src/common/nmv-conf-manager.cc
branches/0.5/src/common/nmv-log-stream.cc
branches/0.5/src/dbgengine/nmv-gdb-engine.cc
Modified: branches/0.5/src/common/nmv-conf-manager.cc
==============================================================================
--- branches/0.5/src/common/nmv-conf-manager.cc (original)
+++ branches/0.5/src/common/nmv-conf-manager.cc Sat Jun 21 12:39:38 2008
@@ -342,9 +342,9 @@
if (initialized)
return ;
- string configfile = getenv (string ("nemiverconfigfile")) ;
- if (configfile != "") {
- parse_config_file (configfile.c_str ()) ;
+ const char* configfile (g_getenv ("nemiverconfigfile"));
+ if (configfile) {
+ parse_config_file (configfile) ;
} else if (file_test ("nemiver.conf", FILE_TEST_IS_REGULAR)) {
parse_config_file ("nemiver.conf") ;
} else {
Modified: branches/0.5/src/common/nmv-log-stream.cc
==============================================================================
--- branches/0.5/src/common/nmv-log-stream.cc (original)
+++ branches/0.5/src/common/nmv-log-stream.cc Sat Jun 21 12:39:38 2008
@@ -283,9 +283,9 @@
void load_enabled_domains_from_env ()
{
- char *str = getenv ("nmv_log_domains") ;
+ const char *str = g_getenv ("nmv_log_domains") ;
if (!str) {
- str = getenv ("NMV_LOG_DOMAINS") ;
+ str = g_getenv ("NMV_LOG_DOMAINS") ;
}
if (!str) {return;}
UString domains_str = Glib::locale_to_utf8 (str) ;
Modified: branches/0.5/src/dbgengine/nmv-gdb-engine.cc
==============================================================================
--- branches/0.5/src/dbgengine/nmv-gdb-engine.cc (original)
+++ branches/0.5/src/dbgengine/nmv-gdb-engine.cc Sat Jun 21 12:39:38 2008
@@ -517,7 +517,7 @@
bool find_prog_in_path (const UString &a_prog,
UString &a_prog_path)
{
- const char *tmp = getenv ("PATH");
+ const char *tmp = g_getenv ("PATH");
if (!tmp) {return false;}
vector<UString> path_dirs = UString (tmp).split (":");
path_dirs.insert (path_dirs.begin (), ("."));
@@ -2055,7 +2055,7 @@
//time so that some "step into" don't take for ever.
//On GDB, it seems that stepping into a function that is
//in a share lib takes stepping through GNU ld, so it can take time.
- const char *nmv_ld_bind_now = getenv ("NMV_LD_BIND_NOW");
+ const char *nmv_ld_bind_now = g_getenv ("NMV_LD_BIND_NOW");
if (nmv_ld_bind_now && atoi (nmv_ld_bind_now)) {
LOG_DD ("setting LD_BIND_NOW=1");
queue_command (Command ("set env LD_BIND_NOW 1"));
@@ -2115,7 +2115,7 @@
//time so that some "step into" don't take for ever.
//On GDB, it seems that stepping into a function that is
//in a share lib takes stepping through GNU ld, so it can take time.
- const char *nmv_dont_ld_bind_now = getenv ("NMV_DONT_LD_BIND_NOW");
+ const char *nmv_dont_ld_bind_now = g_getenv ("NMV_DONT_LD_BIND_NOW");
if (!nmv_dont_ld_bind_now || !atoi (nmv_dont_ld_bind_now)) {
LOG_DD ("setting LD_BIND_NOW=1");
queue_command (Command ("set env LD_BIND_NOW environment variable to 1"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]