mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Make xaccSplitDump and xaccTransDump work for debugging.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18509 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -232,15 +232,20 @@ xaccSplitClone (const Split *s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DUMP_FUNCTIONS
|
#ifdef DUMP_FUNCTIONS
|
||||||
static void
|
void
|
||||||
xaccSplitDump (const Split *split, const char *tag)
|
xaccSplitDump (const Split *split, const char *tag)
|
||||||
{
|
{
|
||||||
printf(" %s Split %p", tag, split);
|
printf(" %s Split %p", tag, split);
|
||||||
printf(" GUID: %s\n", guid_to_string(&split->guid));
|
|
||||||
printf(" Book: %p\n", qof_instance_get_book(split));
|
printf(" Book: %p\n", qof_instance_get_book(split));
|
||||||
printf(" Account: %p\n", split->acc);
|
printf(" Account: %p (%s)\n", split->acc,
|
||||||
|
split->acc ? xaccAccountGetName(split->acc) : "");
|
||||||
|
printf(" Commod: %s\n",
|
||||||
|
split->acc ?
|
||||||
|
gnc_commodity_get_printname(xaccAccountGetCommodity(split->acc))
|
||||||
|
: "");
|
||||||
printf(" Lot: %p\n", split->lot);
|
printf(" Lot: %p\n", split->lot);
|
||||||
printf(" Parent: %p\n", split->parent);
|
printf(" Parent: %p\n", split->parent);
|
||||||
|
printf(" Gains: %p\n", split->gains_split);
|
||||||
printf(" Memo: %s\n", split->memo ? split->memo : "(null)");
|
printf(" Memo: %s\n", split->memo ? split->memo : "(null)");
|
||||||
printf(" Action: %s\n", split->action ? split->action : "(null)");
|
printf(" Action: %s\n", split->action ? split->action : "(null)");
|
||||||
printf(" KVP Data: %p\n", split->inst.kvp_data);
|
printf(" KVP Data: %p\n", split->inst.kvp_data);
|
||||||
|
|||||||
@@ -424,6 +424,10 @@ const char * xaccSplitGetCorrAccountName(const Split *sa);
|
|||||||
/** document me */
|
/** document me */
|
||||||
const char * xaccSplitGetCorrAccountCode(const Split *sa);
|
const char * xaccSplitGetCorrAccountCode(const Split *sa);
|
||||||
|
|
||||||
|
#ifdef DUMP_FUNCTIONS
|
||||||
|
void xaccSplitDump (const Split *split, const char *tag);
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -591,6 +591,10 @@ Timespec xaccTransGetVoidTime(const Transaction *tr);
|
|||||||
#define TRANS_SPLITLIST "split-list" /* for guid_match_all */
|
#define TRANS_SPLITLIST "split-list" /* for guid_match_all */
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|
||||||
|
#ifdef DUMP_FUNCTIONS
|
||||||
|
void xaccTransDump (const Transaction *trans, const char *tag);
|
||||||
|
#endif
|
||||||
|
|
||||||
#define RECONCILED_MATCH_TYPE "reconciled-match"
|
#define RECONCILED_MATCH_TYPE "reconciled-match"
|
||||||
|
|
||||||
/** \deprecated */
|
/** \deprecated */
|
||||||
|
|||||||
Reference in New Issue
Block a user