r15875 - gnucash/trunk/src - Balance some more ENTER/LEAVE calls. Replace one ENTER by DEBUG.
Andreas Köhler
andi5 at cvs.gnucash.org
Wed Apr 11 12:47:43 EDT 2007
Author: andi5
Date: 2007-04-11 12:47:42 -0400 (Wed, 11 Apr 2007)
New Revision: 15875
Trac: http://svn.gnucash.org/trac/changeset/15875
Modified:
gnucash/trunk/src/engine/Scrub.c
gnucash/trunk/src/engine/gnc-commodity.c
gnucash/trunk/src/engine/gnc-filepath-utils.c
gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c
gnucash/trunk/src/register/ledger-core/split-register.c
Log:
Balance some more ENTER/LEAVE calls. Replace one ENTER by DEBUG.
Modified: gnucash/trunk/src/engine/Scrub.c
===================================================================
--- gnucash/trunk/src/engine/Scrub.c 2007-04-11 15:37:09 UTC (rev 15874)
+++ gnucash/trunk/src/engine/Scrub.c 2007-04-11 16:47:42 UTC (rev 15875)
@@ -366,7 +366,10 @@
/* If the transaction is balanced, nothing more to do */
imbalance = xaccTransGetImbalance (trans);
- if (gnc_numeric_zero_p (imbalance)) return;
+ if (gnc_numeric_zero_p (imbalance)) {
+ LEAVE("zero imbalance");
+ return;
+ }
if (!account)
{
@@ -377,6 +380,7 @@
{
/* This can't occur, things should be in books */
PERR ("Bad data corruption, no root account in book");
+ LEAVE("");
return;
}
}
@@ -384,6 +388,7 @@
trans->common_currency, _("Imbalance"));
if (!account) {
PERR ("Can't get balancing account");
+ LEAVE("");
return;
}
}
Modified: gnucash/trunk/src/engine/gnc-commodity.c
===================================================================
--- gnucash/trunk/src/engine/gnc-commodity.c 2007-04-11 15:37:09 UTC (rev 15874)
+++ gnucash/trunk/src/engine/gnc-commodity.c 2007-04-11 16:47:42 UTC (rev 15875)
@@ -1297,10 +1297,12 @@
{
if (c == comm)
{
+ LEAVE("already in table");
return c;
}
gnc_commodity_copy (c, comm);
gnc_commodity_destroy (comm);
+ LEAVE("found at %p", c);
return c;
}
Modified: gnucash/trunk/src/engine/gnc-filepath-utils.c
===================================================================
--- gnucash/trunk/src/engine/gnc-filepath-utils.c 2007-04-11 15:37:09 UTC (rev 15874)
+++ gnucash/trunk/src/engine/gnc-filepath-utils.c 2007-04-11 16:47:42 UTC (rev 15875)
@@ -195,11 +195,14 @@
/* OK, now we try to find or build an absolute file path */
/* check for an absolute file path */
- if (g_path_is_absolute(filefrag))
+ if (g_path_is_absolute(filefrag)) {
+ LEAVE("filefrag is absolute path");
return g_strdup (filefrag);
+ }
if (!g_ascii_strncasecmp(filefrag, "file:", 5))
{
+ LEAVE("filefrag is file uri");
return g_strdup(filefrag + 5);
}
@@ -221,6 +224,7 @@
if (g_file_test(fullpath, G_FILE_TEST_IS_REGULAR))
{
+ LEAVE("found %s", fullpath);
return fullpath;
}
g_free (fullpath);
@@ -251,6 +255,7 @@
gchar *result;
result = g_build_filename(pathbuf, filefrag_dup, (gchar *)NULL);
g_free (filefrag_dup);
+ LEAVE("create new file %s", result);
return result;
}
@@ -261,11 +266,13 @@
gchar *result;
result = g_build_filename(pathbuf, filefrag_dup, (gchar *)NULL);
g_free (filefrag_dup);
+ LEAVE("create new file %s", result);
return result;
}
g_free (filefrag_dup);
+ LEAVE("%s not found", filefrag);
return NULL;
}
Modified: gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c 2007-04-11 15:37:09 UTC (rev 15874)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c 2007-04-11 16:47:42 UTC (rev 15875)
@@ -1002,6 +1002,8 @@
g_return_val_if_fail (GTK_IS_TREE_MODEL_SORT(s_model), NULL);
g_return_val_if_fail (s_iter != NULL, NULL);
+ ENTER("model %p, iter %p", s_model, s_iter);
+
gtk_tree_model_sort_convert_iter_to_child_iter (GTK_TREE_MODEL_SORT(s_model),
&f_iter,
s_iter);
Modified: gnucash/trunk/src/register/ledger-core/split-register.c
===================================================================
--- gnucash/trunk/src/register/ledger-core/split-register.c 2007-04-11 15:37:09 UTC (rev 15874)
+++ gnucash/trunk/src/register/ledger-core/split-register.c 2007-04-11 16:47:42 UTC (rev 15875)
@@ -1353,7 +1353,7 @@
return TRUE;
}
- ENTER ("save split is %p \n", split);
+ DEBUG ("save split is %p \n", split);
if (!gnc_split_register_auto_calc (reg, split))
return FALSE;
More information about the gnucash-changes
mailing list