FreqSpec and GDate
Neil Williams
linux at codehelp.co.uk
Sun Apr 24 08:35:29 EDT 2005
FreqSpec.c contains this note:
(line 97)
/* I have done this to prevent compiler warnings...
* This is used to convert a const GDate* to a GDate* for passing
* to the glib g_date_xxx functions which don't use const...
* Strangely, most of the rest of glib does use const, so
* perhaps this will change? When it does, just define this macro to
* nothing and the compiler will check the constness of each pointer....
Done. NW 24/4/5.
*/
#define CONST_HACK
//(GDate*)
The old version was:
#define CONST_HACK (GDate*)
I've changed this locally and it all compiles fine.
Can someone else with an older glib (i.e. the platform target version) just
check that "cd src/engine/ make" is fine if this macro is defined as blank?
Thanks.
There are some features of FreqSpec that are SX specific - e.g. it invalidates
any date that has already passed - which are fine for SX and GnuCash but not
suitable for pilot-qof where the pilot retains the repeat even after the
event has finished. SX doesn't because it has passed that job on to Account
and the backend, the palm still lists datebook events as "repeated" long
after the last date has gone presumably because there is no other storage and
the need to conserve space.
So I will take FreqSpec out of the QOF tree (it's actually been out of the
library itself for some time - it's not in the Makefile!) and implement a
subtly different version for pilot-qof (with a different name for clarity).
I'll also move FreqSpec out of the QOF module list and put it under SX in the
Doxygen output.
--
Neil Williams
=============
http://www.dcglug.org.uk/
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/20050424/a2335152/attachment.bin
More information about the gnucash-devel
mailing list