[Gnucash-changes] r13352 - gnucash/trunk - Fix "default limit"
QOF eventing stuff; thanks Andi.
Neil Williams
linux at codehelp.co.uk
Sun Feb 26 11:57:44 EST 2006
On Sunday 26 February 2006 4:31 pm, Derek Atkins wrote:
> Events should always be a power of 2. This way bitmasking events
> works quickly and efficiently. It does, however, limit the number
> of events you can have.
It's still going to be more than we had under gnc-event.
:-)
It should be plenty, after all, the new event structure may only be required
during libqof1.
> One suggestion I had was to do something like:
>
> #define QOF_MAKE_EVENT(x) (1<<x)
>
> Then you can do:
>
> #define QOF_EVENT_A QOF_MAKE_EVENT(0)
> #define QOF_EVENT_B QOF_MAKE_EVENT(1)
> ...
>
> and then in the API code:
>
> #define APP_EVENT_A QOF_MAKE_EVENT(QOF_EVENT_BASE+0)
> #define APP_EVENT_B QOF_MAKE_EVENT(QOF_EVENT_BASE+1)
I can test that for 0.6.2 if you'd like.
--
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/20060226/6a87da92/attachment.bin
More information about the gnucash-devel
mailing list