+Tue Sep 21 16:55:38 2004 Manish Singh <yosh@gimp.org>
+
+ * tests/testtreemodel.c: #include <config.h> for HAVE_MALLINFO define,
+ other minor cleanups.
+
Tue Sep 21 16:27:19 2004 Manish Singh <yosh@gimp.org>
* gdk/gdk.c: remove now unused arg variables.
+Tue Sep 21 16:55:38 2004 Manish Singh <yosh@gimp.org>
+
+ * tests/testtreemodel.c: #include <config.h> for HAVE_MALLINFO define,
+ other minor cleanups.
+
Tue Sep 21 16:27:19 2004 Manish Singh <yosh@gimp.org>
* gdk/gdk.c: remove now unused arg variables.
+Tue Sep 21 16:55:38 2004 Manish Singh <yosh@gimp.org>
+
+ * tests/testtreemodel.c: #include <config.h> for HAVE_MALLINFO define,
+ other minor cleanups.
+
Tue Sep 21 16:27:19 2004 Manish Singh <yosh@gimp.org>
* gdk/gdk.c: remove now unused arg variables.
+Tue Sep 21 16:55:38 2004 Manish Singh <yosh@gimp.org>
+
+ * tests/testtreemodel.c: #include <config.h> for HAVE_MALLINFO define,
+ other minor cleanups.
+
Tue Sep 21 16:27:19 2004 Manish Singh <yosh@gimp.org>
* gdk/gdk.c: remove now unused arg variables.
* Boston, MA 02111-1307, USA.
*/
+#include <config.h>
+
+#include <string.h>
+
#ifdef HAVE_MALLINFO
#include <malloc.h>
#endif
+
#include <gtk/gtk.h>
static gint repeats = 2;
GtkTreeIter iter;
gchar *text;
FindData data;
- gint n;
text = g_strdup_printf ("row %d", i);
data.n = g_random_int_range (0, items);
data.found = FALSE;
if (data.n < i)
gtk_tree_model_foreach (model, find_nth, &data);
- gtk_tree_store_insert (store, &iter, data.found ? &(data.iter) : NULL, n);
+ gtk_tree_store_insert (store, &iter, data.found ? &(data.iter) : NULL, data.n);
gtk_tree_store_set (store, &iter, 0, i, 1, text, -1);
g_free (text);
}
ClearFunc *clear,
InsertFunc *insert)
{
- GtkTreeIter iter;
gint i, k, d, items;
- gchar *text;
GTimer *timer;
gdouble elapsed;
- int uordblks_before, memused;
+ int uordblks_before = 0, memused;
g_print ("%s (average over %d runs, time in milliseconds)\n"
"items \ttime \ttime/item \tused memory\n", title, repeats);
main (int argc, char *argv[])
{
GtkTreeModel *model;
- GOptionContext *context;
gtk_init_with_args (&argc, &argv, NULL, entries, NULL, NULL);