print additional info in the debugging routine PrintQuery()

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4341 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2001-05-31 16:42:12 +00:00
parent ddf9aabaf2
commit 70b34d05fa

View File

@ -130,11 +130,21 @@ xaccQueryPrint(Query * q)
qt = (QueryTerm *)j->data; qt = (QueryTerm *)j->data;
switch (qt->data.base.term_type) switch (qt->data.base.term_type)
{ {
case PR_ACCOUNT: case PR_ACCOUNT: {
GList *p;
char buff[40];
printf ("account sense=%d how=%d\n", printf ("account sense=%d how=%d\n",
qt->data.base.sense, qt->data.base.sense,
qt->data.acct.how); qt->data.acct.how);
for (p=qt->data.acct.account_guids; p; p=p->next) {
guid_to_string_buff (p->data, buff);
printf ("\tguid=%s\n", buff);
}
for (p=qt->data.acct.accounts; p; p=p->next) {
printf ("\tacct ptr=%p\n", p->data);
}
break; break;
}
case PR_ACTION: case PR_ACTION:
printf ("action\n"); printf ("action\n");
break; break;