--- a/glib/tsrc/BC/tests/refcount/properties2.c Wed Oct 13 19:39:18 2010 +0530
+++ b/glib/tsrc/BC/tests/refcount/properties2.c Thu Oct 14 14:15:50 2010 +0530
@@ -9,12 +9,12 @@
#endif /*SYMBIAN*/
-#define G_TYPE_TEST (g_test_get_type ())
-#define G_TEST(test) (G_TYPE_CHECK_INSTANCE_CAST ((test), G_TYPE_TEST, GTest))
-#define G_IS_TEST(test) (G_TYPE_CHECK_INSTANCE_TYPE ((test), G_TYPE_TEST))
-#define G_TEST_CLASS(tclass) (G_TYPE_CHECK_CLASS_CAST ((tclass), G_TYPE_TEST, GTestClass))
-#define G_IS_TEST_CLASS(tclass) (G_TYPE_CHECK_CLASS_TYPE ((tclass), G_TYPE_TEST))
-#define G_TEST_GET_CLASS(test) (G_TYPE_INSTANCE_GET_CLASS ((test), G_TYPE_TEST, GTestClass))
+#define G_TYPE_TEST (my_test_get_type ())
+#define MY_TEST(test) (G_TYPE_CHECK_INSTANCE_CAST ((test), G_TYPE_TEST, GTest))
+#define MY_IS_TEST(test) (G_TYPE_CHECK_INSTANCE_TYPE ((test), G_TYPE_TEST))
+#define MY_TEST_CLASS(tclass) (G_TYPE_CHECK_CLASS_CAST ((tclass), G_TYPE_TEST, GTestClass))
+#define MY_IS_TEST_CLASS(tclass) (G_TYPE_CHECK_CLASS_TYPE ((tclass), G_TYPE_TEST))
+#define MY_TEST_GET_CLASS(test) (G_TYPE_INSTANCE_GET_CLASS ((test), G_TYPE_TEST, GTestClass))
enum {
PROP_0,
@@ -36,24 +36,24 @@
GObjectClass parent_class;
};
-static GType g_test_get_type (void);
+static GType my_test_get_type (void);
-static void g_test_class_init (GTestClass * klass);
-static void g_test_init (GTest * test);
-static void g_test_dispose (GObject * object);
-static void g_test_get_property (GObject *object,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec);
-static void g_test_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec);
+static void my_test_class_init (GTestClass * klass);
+static void my_test_init (GTest * test);
+static void my_test_dispose (GObject * object);
+static void my_test_get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec);
+static void my_test_set_property (GObject *object,
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec);
static GObjectClass *parent_class = NULL;
static GType
-g_test_get_type (void)
+my_test_get_type (void)
{
static GType test_type = 0;
@@ -62,12 +62,12 @@
sizeof (GTestClass),
NULL,
NULL,
- (GClassInitFunc) g_test_class_init,
+ (GClassInitFunc) my_test_class_init,
NULL,
NULL,
sizeof (GTest),
0,
- (GInstanceInitFunc) g_test_init,
+ (GInstanceInitFunc) my_test_init,
NULL
};
@@ -83,7 +83,7 @@
}
static void
-g_test_class_init (GTestClass * klass)
+my_test_class_init (GTestClass * klass)
{
GObjectClass *gobject_class;
GParamSpec *gparam_spec;
@@ -99,9 +99,9 @@
- gobject_class->dispose = g_test_dispose;
- gobject_class->get_property = g_test_get_property;
- gobject_class->set_property = g_test_set_property;
+ gobject_class->dispose = my_test_dispose;
+ gobject_class->get_property = my_test_get_property;
+ gobject_class->set_property = my_test_set_property;
g_object_class_install_property (gobject_class,
PROP_DUMMY,
@@ -110,21 +110,20 @@
NULL,
0, G_MAXINT, 0,
G_PARAM_READWRITE));
-
}
static void
-g_test_init (GTest * test)
+my_test_init (GTest * test)
{
//g_print ("init %p\n", test);
}
static void
-g_test_dispose (GObject * object)
+my_test_dispose (GObject * object)
{
GTest *test;
- test = G_TEST (object);
+ test = MY_TEST (object);
g_print ("dispose %p!\n", object);
@@ -132,14 +131,14 @@
}
static void
-g_test_get_property (GObject *object,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec)
+my_test_get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec)
{
GTest *test;
- test = G_TEST (object);
+ test = MY_TEST (object);
switch (prop_id)
{
@@ -153,14 +152,14 @@
}
static void
-g_test_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec)
+my_test_set_property (GObject *object,
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec)
{
GTest *test;
- test = G_TEST (object);
+ test = MY_TEST (object);
switch (prop_id)
{
@@ -185,7 +184,7 @@
}
static void
-g_test_do_property (GTest * test)
+my_test_do_property (GTest * test)
{
gint dummy;
@@ -225,7 +224,7 @@
g_assert (count == test->dummy);
for (i=0; i<1000; i++) {
- g_test_do_property (test);
+ my_test_do_property (test);
}
g_assert (count == test->dummy);