mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-28 23:16:14 +01:00
Move initialization of variables after g_return_val_if_fail. (#131564,
Thu Jan 15 22:35:04 2004 Matthias Clasen <maclas@gmx.de> * glib/gstring.c (g_string_up): * glib/gstring.c (g_string_down): * glib/gstring.c (g_string_ascii_up): * glib/gstring.c (g_string_ascii_down): Move initialization of variables after g_return_val_if_fail. (#131564, Olivier Poncet)
This commit is contained in:
parent
72785faa51
commit
6c43e9ac9f
@ -1,3 +1,11 @@
|
|||||||
|
Thu Jan 15 22:35:04 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gstring.c (g_string_up):
|
||||||
|
* glib/gstring.c (g_string_down):
|
||||||
|
* glib/gstring.c (g_string_ascii_up):
|
||||||
|
* glib/gstring.c (g_string_ascii_down): Move initialization of
|
||||||
|
variables after g_return_val_if_fail. (#131564, Olivier Poncet)
|
||||||
|
|
||||||
Sun Jan 11 16:13:20 2004 Manish Singh <yosh@gimp.org>
|
Sun Jan 11 16:13:20 2004 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in: Add G_MAXSIZE, define in terms of G_MAXUfoo.
|
* configure.in: Add G_MAXSIZE, define in terms of G_MAXUfoo.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Thu Jan 15 22:35:04 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gstring.c (g_string_up):
|
||||||
|
* glib/gstring.c (g_string_down):
|
||||||
|
* glib/gstring.c (g_string_ascii_up):
|
||||||
|
* glib/gstring.c (g_string_ascii_down): Move initialization of
|
||||||
|
variables after g_return_val_if_fail. (#131564, Olivier Poncet)
|
||||||
|
|
||||||
Sun Jan 11 16:13:20 2004 Manish Singh <yosh@gimp.org>
|
Sun Jan 11 16:13:20 2004 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in: Add G_MAXSIZE, define in terms of G_MAXUfoo.
|
* configure.in: Add G_MAXSIZE, define in terms of G_MAXUfoo.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Thu Jan 15 22:35:04 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gstring.c (g_string_up):
|
||||||
|
* glib/gstring.c (g_string_down):
|
||||||
|
* glib/gstring.c (g_string_ascii_up):
|
||||||
|
* glib/gstring.c (g_string_ascii_down): Move initialization of
|
||||||
|
variables after g_return_val_if_fail. (#131564, Olivier Poncet)
|
||||||
|
|
||||||
Sun Jan 11 16:13:20 2004 Manish Singh <yosh@gimp.org>
|
Sun Jan 11 16:13:20 2004 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in: Add G_MAXSIZE, define in terms of G_MAXUfoo.
|
* configure.in: Add G_MAXSIZE, define in terms of G_MAXUfoo.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Thu Jan 15 22:35:04 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gstring.c (g_string_up):
|
||||||
|
* glib/gstring.c (g_string_down):
|
||||||
|
* glib/gstring.c (g_string_ascii_up):
|
||||||
|
* glib/gstring.c (g_string_ascii_down): Move initialization of
|
||||||
|
variables after g_return_val_if_fail. (#131564, Olivier Poncet)
|
||||||
|
|
||||||
Sun Jan 11 16:13:20 2004 Manish Singh <yosh@gimp.org>
|
Sun Jan 11 16:13:20 2004 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in: Add G_MAXSIZE, define in terms of G_MAXUfoo.
|
* configure.in: Add G_MAXSIZE, define in terms of G_MAXUfoo.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Thu Jan 15 22:35:04 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gstring.c (g_string_up):
|
||||||
|
* glib/gstring.c (g_string_down):
|
||||||
|
* glib/gstring.c (g_string_ascii_up):
|
||||||
|
* glib/gstring.c (g_string_ascii_down): Move initialization of
|
||||||
|
variables after g_return_val_if_fail. (#131564, Olivier Poncet)
|
||||||
|
|
||||||
Sun Jan 11 16:13:20 2004 Manish Singh <yosh@gimp.org>
|
Sun Jan 11 16:13:20 2004 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in: Add G_MAXSIZE, define in terms of G_MAXUfoo.
|
* configure.in: Add G_MAXSIZE, define in terms of G_MAXUfoo.
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
Thu Jan 15 22:35:04 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gstring.c (g_string_up):
|
||||||
|
* glib/gstring.c (g_string_down):
|
||||||
|
* glib/gstring.c (g_string_ascii_up):
|
||||||
|
* glib/gstring.c (g_string_ascii_down): Move initialization of
|
||||||
|
variables after g_return_val_if_fail. (#131564, Olivier Poncet)
|
||||||
|
|
||||||
Sun Jan 11 16:13:20 2004 Manish Singh <yosh@gimp.org>
|
Sun Jan 11 16:13:20 2004 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* configure.in: Add G_MAXSIZE, define in terms of G_MAXUfoo.
|
* configure.in: Add G_MAXSIZE, define in terms of G_MAXUfoo.
|
||||||
|
@ -702,10 +702,11 @@ GString*
|
|||||||
g_string_ascii_down (GString *string)
|
g_string_ascii_down (GString *string)
|
||||||
{
|
{
|
||||||
gchar *s;
|
gchar *s;
|
||||||
gint n = string->len;
|
gint n;
|
||||||
|
|
||||||
g_return_val_if_fail (string != NULL, NULL);
|
g_return_val_if_fail (string != NULL, NULL);
|
||||||
|
|
||||||
|
n = string->len;
|
||||||
s = string->str;
|
s = string->str;
|
||||||
|
|
||||||
while (n)
|
while (n)
|
||||||
@ -764,10 +765,11 @@ GString*
|
|||||||
g_string_down (GString *string)
|
g_string_down (GString *string)
|
||||||
{
|
{
|
||||||
guchar *s;
|
guchar *s;
|
||||||
glong n = string->len;
|
glong n;
|
||||||
|
|
||||||
g_return_val_if_fail (string != NULL, NULL);
|
g_return_val_if_fail (string != NULL, NULL);
|
||||||
|
|
||||||
|
n = string->len;
|
||||||
s = (guchar *) string->str;
|
s = (guchar *) string->str;
|
||||||
|
|
||||||
while (n)
|
while (n)
|
||||||
@ -797,10 +799,11 @@ GString*
|
|||||||
g_string_up (GString *string)
|
g_string_up (GString *string)
|
||||||
{
|
{
|
||||||
guchar *s;
|
guchar *s;
|
||||||
glong n = string->len;
|
glong n;
|
||||||
|
|
||||||
g_return_val_if_fail (string != NULL, NULL);
|
g_return_val_if_fail (string != NULL, NULL);
|
||||||
|
|
||||||
|
n = string->len;
|
||||||
s = (guchar *) string->str;
|
s = (guchar *) string->str;
|
||||||
|
|
||||||
while (n)
|
while (n)
|
||||||
|
Loading…
Reference in New Issue
Block a user