add traversal marker

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9082 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2003-08-16 00:16:28 +00:00
parent e10a51db64
commit fe83fbbb4b
2 changed files with 4 additions and 0 deletions

View File

@ -64,6 +64,9 @@ struct gnc_lot_struct
/* Handy cached value to indicate if lot is closed. */
/* If value is negative, then the cache is invalid. */
signed char is_closed;
/* traversal marker, handy for preventing recursion */
unsigned char marker;
};
void gnc_lot_set_guid(GNCLot *lot, GUID guid);

View File

@ -59,6 +59,7 @@ gnc_lot_init (GNCLot *lot, QofBook *book)
lot->account = NULL;
lot->splits = NULL;
lot->is_closed = -1;
lot->marker = 0;
lot->book = book;
qof_entity_guid_new (book->entity_table, &lot->guid);