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/
pgpKzMXtTewNs.pgp
Description: PGP signature
_______________________________________________ gnucash-devel mailing list [email protected] https://lists.gnucash.org/mailman/listinfo/gnucash-devel
