From 59e5059f052f7a0dbf56cf13e98c399c49116e8d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 3 Jan 2005 04:21:24 +0000 Subject: [PATCH] Clarify the docs. (#162747, Crispin Flowerday) 2005-01-02 Matthias Clasen * glib/gutils.c (g_setenv, g_unsetenv): Clarify the docs. (#162747, Crispin Flowerday) --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib/gutils.c | 9 +++++---- 6 files changed, 30 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1b4fb2155..5ce084867 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-01-02 Matthias Clasen + + * glib/gutils.c (g_setenv, g_unsetenv): Clarify the + docs. (#162747, Crispin Flowerday) + 2005-01-01 J. Ali Harlow * configure.in: Don't use AC_TRY_RUN to test for long long format diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 1b4fb2155..5ce084867 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2005-01-02 Matthias Clasen + + * glib/gutils.c (g_setenv, g_unsetenv): Clarify the + docs. (#162747, Crispin Flowerday) + 2005-01-01 J. Ali Harlow * configure.in: Don't use AC_TRY_RUN to test for long long format diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 1b4fb2155..5ce084867 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2005-01-02 Matthias Clasen + + * glib/gutils.c (g_setenv, g_unsetenv): Clarify the + docs. (#162747, Crispin Flowerday) + 2005-01-01 J. Ali Harlow * configure.in: Don't use AC_TRY_RUN to test for long long format diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 1b4fb2155..5ce084867 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2005-01-02 Matthias Clasen + + * glib/gutils.c (g_setenv, g_unsetenv): Clarify the + docs. (#162747, Crispin Flowerday) + 2005-01-01 J. Ali Harlow * configure.in: Don't use AC_TRY_RUN to test for long long format diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 1b4fb2155..5ce084867 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2005-01-02 Matthias Clasen + + * glib/gutils.c (g_setenv, g_unsetenv): Clarify the + docs. (#162747, Crispin Flowerday) + 2005-01-01 J. Ali Harlow * configure.in: Don't use AC_TRY_RUN to test for long long format diff --git a/glib/gutils.c b/glib/gutils.c index c7de24123..f717c0de6 100644 --- a/glib/gutils.c +++ b/glib/gutils.c @@ -1035,8 +1035,8 @@ g_getenv (const gchar *variable) * they can be any sequence of bytes. On Windows, they should be in * UTF-8. * - * Note that on some systems, the memory used for the variable and its value - * can't be reclaimed later. + * Note that on some systems, when variables are overwritten, the memory + * used for the previous variables and its value isn't reclaimed. * * Returns: %FALSE if the environment variable couldn't be set. * @@ -1149,8 +1149,9 @@ extern char **environ; * * Removes an environment variable from the environment. * - * Note that on some systems, the memory used for the variable and its value - * can't be reclaimed. Furthermore, this function can't be guaranteed to operate in a + * Note that on some systems, when variables are overwritten, the memory + * used for the previous variables and its value isn't reclaimed. + * Furthermore, this function can't be guaranteed to operate in a * threadsafe way. * * Since: 2.4