summaryrefslogtreecommitdiff
path: root/testglib.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@src.gnome.org>1999-01-09 20:10:45 +0000
committerJeff Garzik <jgarzik@src.gnome.org>1999-01-09 20:10:45 +0000
commit5eeca0d62d4b3290bf9104c9f2dce71206d1b7fd (patch)
tree36f2894891e7cb979abfbbdceb2078464a2c1015 /testglib.c
parent2a6789be13c4def678ae612d6cdf236d347374eb (diff)
downloadglib-5eeca0d62d4b3290bf9104c9f2dce71206d1b7fd.tar.gz
Make all aux functions static.
* testglib.c: Make all aux functions static. * tests/Makefile.am, tests/dirname-test.c, tests/type-test.c: New tests dirname-test and type-test, from testglib.
Diffstat (limited to 'testglib.c')
-rw-r--r--testglib.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/testglib.c b/testglib.c
index 50ec6fb34..8cc315c89 100644
--- a/testglib.c
+++ b/testglib.c
@@ -185,7 +185,7 @@ g_node_test (void)
g_print ("ok\n");
}
-gboolean
+static gboolean
my_hash_callback_remove (gpointer key,
gpointer value,
gpointer user_data)
@@ -198,7 +198,7 @@ my_hash_callback_remove (gpointer key,
return FALSE;
}
-void
+static void
my_hash_callback_remove_test (gpointer key,
gpointer value,
gpointer user_data)
@@ -209,7 +209,7 @@ my_hash_callback_remove_test (gpointer key,
g_print ("bad!\n");
}
-void
+static void
my_hash_callback (gpointer key,
gpointer value,
gpointer user_data)
@@ -218,20 +218,20 @@ my_hash_callback (gpointer key,
*d = 1;
}
-guint
+static guint
my_hash (gconstpointer key)
{
return (guint) *((const gint*) key);
}
-gint
+static gint
my_hash_compare (gconstpointer a,
gconstpointer b)
{
return *((const gint*) a) == *((const gint*) b);
}
-gint
+static gint
my_list_compare_one (gconstpointer a, gconstpointer b)
{
gint one = *((const gint*)a);
@@ -239,7 +239,7 @@ my_list_compare_one (gconstpointer a, gconstpointer b)
return one-two;
}
-gint
+static gint
my_list_compare_two (gconstpointer a, gconstpointer b)
{
gint one = *((const gint*)a);
@@ -247,14 +247,14 @@ my_list_compare_two (gconstpointer a, gconstpointer b)
return two-one;
}
-/* void
+/* static void
my_list_print (gpointer a, gpointer b)
{
gint three = *((gint*)a);
g_print("%d", three);
}; */
-gint
+static gint
my_compare (gconstpointer a,
gconstpointer b)
{
@@ -264,7 +264,7 @@ my_compare (gconstpointer a,
return *cha - *chb;
}
-gint
+static gint
my_traverse (gpointer key,
gpointer value,
gpointer data)