[Gnucash-changes] r13119 - gnucash/trunk/src/engine/test - removing
unneeded headers and tidying up debug code
Neil Williams
codehelp at cvs.gnucash.org
Sun Feb 5 12:00:05 EST 2006
Author: codehelp
Date: 2006-02-05 12:00:04 -0500 (Sun, 05 Feb 2006)
New Revision: 13119
Trac: http://svn.gnucash.org/trac/changeset/13119
Modified:
gnucash/trunk/src/engine/test/test-recursive.c
Log:
removing unneeded headers and tidying up debug code
Modified: gnucash/trunk/src/engine/test/test-recursive.c
===================================================================
--- gnucash/trunk/src/engine/test/test-recursive.c 2006-02-05 16:58:50 UTC (rev 13118)
+++ gnucash/trunk/src/engine/test/test-recursive.c 2006-02-05 17:00:04 UTC (rev 13119)
@@ -25,8 +25,6 @@
#include <glib/gprintf.h>
#define _GNU_SOURCE
-#include "qofinstance-p.h"
-#include "gnc-event-p.h"
#include "qof.h"
#include "test-engine-stuff.h"
#include "test-stuff.h"
@@ -48,6 +46,10 @@
#define OBJ_FLAG "tiny_flag"
#define OBJ_RELATIVE "family"
+/* set to TRUE to get QSF XML output
+ * requires QSF available (i.e. make install) */
+static gboolean debug = FALSE;
+
/* simple object structure */
typedef struct child_s
{
@@ -953,17 +955,15 @@
QofCollection *grand_coll;
struct tally c;
QofBook *book;
- gboolean debug;
guint d, e;
c.nulls = 0;
c.total = 0;
c.book = NULL;
- debug = FALSE; /* switch to TRUE to see the XML output.*/
book = qof_session_get_book(original);
grand_coll = qof_book_get_collection(book, GRAND_MODULE_NAME);
copy = qof_session_new();
- qof_session_begin(copy, QOF_STDOUT, TRUE, FALSE);
+ if(debug) { qof_session_begin(copy, QOF_STDOUT, TRUE, FALSE); }
qof_entity_copy_coll_r(copy, grand_coll);
/* test the original */
qof_object_foreach(GRAND_MODULE_NAME, book, check_cb, &c);
@@ -993,7 +993,7 @@
myparentRegister();
mychildRegister();
original = qof_session_new();
- qof_session_begin(original, QOF_STDOUT, TRUE, FALSE);
+ if(debug) { qof_session_begin(original, QOF_STDOUT, TRUE, FALSE); }
for(counter = 0; counter < 25; counter++)
{
create_data(original, (counter % 5));
More information about the gnucash-changes
mailing list