forked from AuroraMiddleware/gtk
Avoid a C99ism
Move variable declarations to the beginning of the block. https://bugzilla.gnome.org/show_bug.cgi?id=669511
This commit is contained in:
parent
63865720b7
commit
c2512d1c03
@ -131,9 +131,6 @@ _gtk_css_number_print (const GtkCssNumber *number,
|
|||||||
{
|
{
|
||||||
char buf[G_ASCII_DTOSTR_BUF_SIZE];
|
char buf[G_ASCII_DTOSTR_BUF_SIZE];
|
||||||
|
|
||||||
g_return_if_fail (number != NULL);
|
|
||||||
g_return_if_fail (string != NULL);
|
|
||||||
|
|
||||||
const char *names[] = {
|
const char *names[] = {
|
||||||
/* [GTK_CSS_NUMBER] = */ "",
|
/* [GTK_CSS_NUMBER] = */ "",
|
||||||
/* [GTK_CSS_PERCENT] = */ "%",
|
/* [GTK_CSS_PERCENT] = */ "%",
|
||||||
@ -151,6 +148,9 @@ _gtk_css_number_print (const GtkCssNumber *number,
|
|||||||
/* [GTK_CSS_TURN] = */ "turn",
|
/* [GTK_CSS_TURN] = */ "turn",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
g_return_if_fail (number != NULL);
|
||||||
|
g_return_if_fail (string != NULL);
|
||||||
|
|
||||||
g_ascii_dtostr (buf, sizeof (buf), number->value);
|
g_ascii_dtostr (buf, sizeof (buf), number->value);
|
||||||
g_string_append (string, buf);
|
g_string_append (string, buf);
|
||||||
if (number->value != 0.0)
|
if (number->value != 0.0)
|
||||||
|
Loading…
Reference in New Issue
Block a user