delete a bunch of dead code.
authorManish Singh <yosh@gimp.org>
Mon, 14 Mar 2005 06:01:51 +0000 (06:01 +0000)
committerManish Singh <yosh@src.gnome.org>
Mon, 14 Mar 2005 06:01:51 +0000 (06:01 +0000)
Sun Mar 13 22:01:17 2005  Manish Singh  <yosh@gimp.org>

        * tests/array-test.c: delete a bunch of dead code.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-8
tests/array-test.c

index eaaf45d..beb5cf4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sun Mar 13 22:01:17 2005  Manish Singh  <yosh@gimp.org>
+
+       * tests/array-test.c: delete a bunch of dead code.
+
 Sun Mar 13 21:28:47 2005  Manish Singh  <yosh@gimp.org>
 
        * glib/gdataset.c: remove spurious IA prefix from g_quark_try_string.
index eaaf45d..beb5cf4 100644 (file)
@@ -1,3 +1,7 @@
+Sun Mar 13 22:01:17 2005  Manish Singh  <yosh@gimp.org>
+
+       * tests/array-test.c: delete a bunch of dead code.
+
 Sun Mar 13 21:28:47 2005  Manish Singh  <yosh@gimp.org>
 
        * glib/gdataset.c: remove spurious IA prefix from g_quark_try_string.
index eaaf45d..beb5cf4 100644 (file)
@@ -1,3 +1,7 @@
+Sun Mar 13 22:01:17 2005  Manish Singh  <yosh@gimp.org>
+
+       * tests/array-test.c: delete a bunch of dead code.
+
 Sun Mar 13 21:28:47 2005  Manish Singh  <yosh@gimp.org>
 
        * glib/gdataset.c: remove spurious IA prefix from g_quark_try_string.
index eaaf45d..beb5cf4 100644 (file)
@@ -1,3 +1,7 @@
+Sun Mar 13 22:01:17 2005  Manish Singh  <yosh@gimp.org>
+
+       * tests/array-test.c: delete a bunch of dead code.
+
 Sun Mar 13 21:28:47 2005  Manish Singh  <yosh@gimp.org>
 
        * glib/gdataset.c: remove spurious IA prefix from g_quark_try_string.
index 6d4b558..3777667 100644 (file)
 #include <string.h>
 #include "glib.h"
 
-int array[10000];
-gboolean failed = FALSE;
-
-#define        TEST(m,cond)    G_STMT_START { failed = !(cond); \
-if (failed) \
-  { if (!m) \
-      g_print ("\n(%s:%d) failed for: %s\n", __FILE__, __LINE__, ( # cond )); \
-    else \
-      g_print ("\n(%s:%d) failed for: %s: (%s)\n", __FILE__, __LINE__, ( # cond ), (gchar*)m); \
-  } \
-else \
-  g_print ("."); fflush (stdout); \
-} G_STMT_END
-
-#define        C2P(c)          ((gpointer) ((long) (c)))
-#define        P2C(p)          ((gchar) ((long) (p)))
-
-#define GLIB_TEST_STRING "el dorado "
-#define GLIB_TEST_STRING_5 "el do"
-
-typedef struct {
-       guint age;
-       gchar name[40];
-} GlibTestInfo;
-
-
 static void 
 sum_up (gpointer data, 
        gpointer user_data)
@@ -102,7 +76,9 @@ main (int   argc,
 
   for (i = 0; i < 10000; i++)
     if (g_ptr_array_index (gparray, i) != GINT_TO_POINTER (i))
-      g_print ("array fails: %p ( %p )\n", g_ptr_array_index (gparray, i), GINT_TO_POINTER (i));
+      g_print ("array fails: %p ( %p )\n",
+              g_ptr_array_index (gparray, i),
+              GINT_TO_POINTER (i));
   
   g_ptr_array_foreach (gparray, sum_up, &sum);
   g_assert (sum == 49995000);