mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
e10a51db64
commit
fe83fbbb4b
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user