From: Sebastian Wilhelmi Date: Fri, 1 Sep 2000 13:45:43 +0000 (+0000) Subject: Use g_return_val_if_fail instead of g_return_if_fail, as the function now X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=fab90158aaa79db9825dc97dbfc3f632bdcc0b49;p=dana%2Fcg-glib.git Use g_return_val_if_fail instead of g_return_if_fail, as the function now 2000-09-01 Sebastian Wilhelmi * gstring.c (g_string_free): Use g_return_val_if_fail instead of g_return_if_fail, as the function now is supposed to return something. --- diff --git a/ChangeLog b/ChangeLog index e24e2e5a..1c63c85b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2000-09-01 Sebastian Wilhelmi + * gstring.c (g_string_free): Use g_return_val_if_fail instead of + g_return_if_fail, as the function now is supposed to return + something. + * gerror.c, gerror.h (g_propagte_error): Added function g_propagte_error to hand over local errors to the calling function. diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index e24e2e5a..1c63c85b 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,5 +1,9 @@ 2000-09-01 Sebastian Wilhelmi + * gstring.c (g_string_free): Use g_return_val_if_fail instead of + g_return_if_fail, as the function now is supposed to return + something. + * gerror.c, gerror.h (g_propagte_error): Added function g_propagte_error to hand over local errors to the calling function. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index e24e2e5a..1c63c85b 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2000-09-01 Sebastian Wilhelmi + * gstring.c (g_string_free): Use g_return_val_if_fail instead of + g_return_if_fail, as the function now is supposed to return + something. + * gerror.c, gerror.h (g_propagte_error): Added function g_propagte_error to hand over local errors to the calling function. diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index e24e2e5a..1c63c85b 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,5 +1,9 @@ 2000-09-01 Sebastian Wilhelmi + * gstring.c (g_string_free): Use g_return_val_if_fail instead of + g_return_if_fail, as the function now is supposed to return + something. + * gerror.c, gerror.h (g_propagte_error): Added function g_propagte_error to hand over local errors to the calling function. diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index e24e2e5a..1c63c85b 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,5 +1,9 @@ 2000-09-01 Sebastian Wilhelmi + * gstring.c (g_string_free): Use g_return_val_if_fail instead of + g_return_if_fail, as the function now is supposed to return + something. + * gerror.c, gerror.h (g_propagte_error): Added function g_propagte_error to hand over local errors to the calling function. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index e24e2e5a..1c63c85b 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,5 +1,9 @@ 2000-09-01 Sebastian Wilhelmi + * gstring.c (g_string_free): Use g_return_val_if_fail instead of + g_return_if_fail, as the function now is supposed to return + something. + * gerror.c, gerror.h (g_propagte_error): Added function g_propagte_error to hand over local errors to the calling function. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index e24e2e5a..1c63c85b 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,9 @@ 2000-09-01 Sebastian Wilhelmi + * gstring.c (g_string_free): Use g_return_val_if_fail instead of + g_return_if_fail, as the function now is supposed to return + something. + * gerror.c, gerror.h (g_propagte_error): Added function g_propagte_error to hand over local errors to the calling function. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index e24e2e5a..1c63c85b 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,9 @@ 2000-09-01 Sebastian Wilhelmi + * gstring.c (g_string_free): Use g_return_val_if_fail instead of + g_return_if_fail, as the function now is supposed to return + something. + * gerror.c, gerror.h (g_propagte_error): Added function g_propagte_error to hand over local errors to the calling function. diff --git a/glib/gstring.c b/glib/gstring.c index ee380504..70a76664 100644 --- a/glib/gstring.c +++ b/glib/gstring.c @@ -257,7 +257,7 @@ g_string_free (GString *string, { gchar *segment; - g_return_if_fail (string != NULL); + g_return_val_if_fail (string != NULL, NULL); if (free_segment) { diff --git a/gstring.c b/gstring.c index ee380504..70a76664 100644 --- a/gstring.c +++ b/gstring.c @@ -257,7 +257,7 @@ g_string_free (GString *string, { gchar *segment; - g_return_if_fail (string != NULL); + g_return_val_if_fail (string != NULL, NULL); if (free_segment) {