On Wednesday 20 July 2005 7:53 pm, Neil Williams wrote:
> When a collection is marked clean, does THAT have to iterate down to every
> instance? 

Ignore that, I'll make it so that if the collection is clean, 
qof_instance_is_dirty returns (and sets) FALSE.

...
if(qof_collection_is_dirty(coll)) { return inst->dirty; }
inst->dirty = FALSE;
return FALSE;

i.e. don't shortcircuit things by setting inst->dirty direct!

(As part of the CLI, I'll be reviewing the private headers exported by QOF 
soon and qofinstance-p.h will be removed from EXTRA_DIST which should prevent 
such shortcuts in the future. qofid-p.h will also be removed.)

-- 

Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpfbHraq5cIL.pgp
Description: PGP signature

_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to