[Gnucash-changes] r13352 - gnucash/trunk - Fix "default limit"
QOF eventing stuff; thanks Andi.
Neil Williams
linux at codehelp.co.uk
Sat Feb 25 15:53:01 EST 2006
On Tuesday 21 February 2006 11:10 pm, Joshua Sled wrote:
> Author: jsled
> + * lib/libqof/qof/qofevent.[ch] (QOF_DEFAULT_EVENT_LIMIT): rename, set
> + to reasonable value (the last-defined event).
> Modified: gnucash/trunk/lib/libqof/qof/qofevent.h
> ===================================================================
> --- gnucash/trunk/lib/libqof/qof/qofevent.h 2006-02-21 21:46:07 UTC (rev
> 13351) +++ gnucash/trunk/lib/libqof/qof/qofevent.h 2006-02-21 23:10:33 UTC
> (rev 13352) @@ -50,11 +50,12 @@
> #define QOF_EVENT_REMOVE (1 << 4)
> +#define QOF_EVENT__LAST QOF_EVENT_REMOVE
> #define QOF_EVENT_ALL (0xff)
(do we need QOF_EVENT_ALL ?)
> /** Allow scope for more defaults in future. Additional
> event identifiers must be larger than this. */
> -#define QOF_DEFAULT_LIMIT 10
> +#define QOF_DEFAULT_EVENT_LIMIT QOF_EVENT__LAST
Josh - why was this a bug? What was wrong with a gap?
Supplementary events will now have to be based on QOF_DEFAULT_LIMIT + n rather
than just something bigger than 10?
I thought nobody wanted to iterate over event identifiers?
--
Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20060225/b6c69bf0/attachment.bin
More information about the gnucash-devel
mailing list