mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-18 11:41:58 +02:00
Adapt to GLib coding standards.
2006-05-10 Sebastian Wilhelmi <wilhelmi@google.com> * tests/errorcheck-mutex-test.c: Adapt to GLib coding standards.
This commit is contained in:
parent
530b06b7e5
commit
a194e2e971
@ -1,3 +1,7 @@
|
|||||||
|
2006-05-10 Sebastian Wilhelmi <wilhelmi@google.com>
|
||||||
|
|
||||||
|
* tests/errorcheck-mutex-test.c: Adapt to GLib coding standards.
|
||||||
|
|
||||||
2006-05-09 Sebastian Wilhelmi <wilhelmi@google.com>
|
2006-05-09 Sebastian Wilhelmi <wilhelmi@google.com>
|
||||||
|
|
||||||
* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
|
* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2006-05-10 Sebastian Wilhelmi <wilhelmi@google.com>
|
||||||
|
|
||||||
|
* tests/errorcheck-mutex-test.c: Adapt to GLib coding standards.
|
||||||
|
|
||||||
2006-05-09 Sebastian Wilhelmi <wilhelmi@google.com>
|
2006-05-09 Sebastian Wilhelmi <wilhelmi@google.com>
|
||||||
|
|
||||||
* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
|
* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
|
||||||
|
@ -108,24 +108,24 @@ main (int argc, char* argv[])
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (argc == 2)
|
if (argc == 2)
|
||||||
{
|
|
||||||
for (i = 0; i < G_N_ELEMENTS (func_table); i++)
|
|
||||||
{
|
{
|
||||||
if (strcmp (func_table[i].name, argv[1]) == 0)
|
for (i = 0; i < G_N_ELEMENTS (func_table); i++)
|
||||||
{
|
{
|
||||||
g_thread_init (NULL);
|
if (strcmp (func_table[i].name, argv[1]) == 0)
|
||||||
func_table[i].func ();
|
{
|
||||||
g_assert_not_reached ();
|
g_thread_init (NULL);
|
||||||
}
|
func_table[i].func ();
|
||||||
|
g_assert_not_reached ();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
fprintf (stderr, "Usage: errorcheck-mutex-test [TEST]\n\n");
|
fprintf (stderr, "Usage: errorcheck-mutex-test [TEST]\n\n");
|
||||||
fprintf (stderr, " where TEST can be one of:\n\n");
|
fprintf (stderr, " where TEST can be one of:\n\n");
|
||||||
for (i = 0; i < G_N_ELEMENTS (func_table); i++)
|
for (i = 0; i < G_N_ELEMENTS (func_table); i++)
|
||||||
{
|
{
|
||||||
fprintf (stderr, " %s\n", func_table[i].name);
|
fprintf (stderr, " %s\n", func_table[i].name);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user