mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01: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>
|
||||
|
||||
* 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>
|
||||
|
||||
* glib/gthreadinit.h: Renamed to glib/gthreadprivate.h and moved
|
||||
|
@ -108,24 +108,24 @@ main (int argc, char* argv[])
|
||||
int i;
|
||||
|
||||
if (argc == 2)
|
||||
{
|
||||
for (i = 0; i < G_N_ELEMENTS (func_table); i++)
|
||||
{
|
||||
if (strcmp (func_table[i].name, argv[1]) == 0)
|
||||
{
|
||||
g_thread_init (NULL);
|
||||
func_table[i].func ();
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
for (i = 0; i < G_N_ELEMENTS (func_table); i++)
|
||||
{
|
||||
if (strcmp (func_table[i].name, argv[1]) == 0)
|
||||
{
|
||||
g_thread_init (NULL);
|
||||
func_table[i].func ();
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fprintf (stderr, "Usage: errorcheck-mutex-test [TEST]\n\n");
|
||||
fprintf (stderr, " where TEST can be one of:\n\n");
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user