Re: [fpc-pascal] fpcmake targets and $defines

2009-12-10 Thread Tomas Hajny
On Thu, December 10, 2009 01:03, Roland Schaefer wrote: Hi, do the standard targets set up by fpcmake come with any defines which allow conditional compilation depending on the target (like extra code to be compiled only when doing 'make debug', for example)? If not, can I get fpcmake to

[fpc-pascal] Possible bug in return value of MonthsBetween function in unit dateutils

2009-12-10 Thread Funky Beast
Hi, When trying to get the number of months between the following dates: 01-06-2009 and 01-08-2008 MonthsBetween returns: 9 months. That is clearly wrong (fundamentally counting with my fingers yields 10 months). Looking at the function in dateutils.inc, I copied the function implementation to

Re: [fpc-pascal] Possible bug in return value of MonthsBetween function in unit dateutils

2009-12-10 Thread Vincent Snijders
Funky Beast schreef: Hi, When trying to get the number of months between the following dates: 01-06-2009 and 01-08-2008 MonthsBetween returns: 9 months. That is clearly wrong (fundamentally counting with my fingers yields 10 months). Looking at the function in dateutils.inc, I copied the

[fpc-pascal] GNU GLOBAL Source Code Tag System

2009-12-10 Thread Mehmet Erol Sanliturk
Dear All , In some of your messages I am reading questions about places of the some Lazarus and/or Free Pascal phrases/names . During installation of OpenSUSE 11.2 yesterday ( 2009-December-9 ) I saw a package named global , I have searched it Internet , and found the following sites :

[fpc-pascal] Re: Possible bug in return value of MonthsBetween function in unit dateutils

2009-12-10 Thread Funky Beast
Vincent Snijders wrote: Funky Beast schreef: Hi, When trying to get the number of months between the following dates: 01-06-2009 and 01-08-2008 MonthsBetween returns: 9 months. That is clearly wrong (fundamentally counting with my fingers yields 10 months). Looking at the function in

Re: [fpc-pascal] Re: Possible bug in return value of MonthsBetween function in unit dateutils

2009-12-10 Thread Henry Vermaak
2009/12/10 Funky Beast funkybe...@pacific.net.sg: I did read that, but I'm just wondering isn't 9.98767967 more approximate to 10 than 9? How do you round a month? It makes sense that the function only gives full months, imo. Either way, I think this is d€lphi compatible and at least

Re: [fpc-pascal] Re: Possible bug in return value of MonthsBetween function in unit dateutils

2009-12-10 Thread Marco van de Voort
In our previous episode, Henry Vermaak said: 2009/12/10 Funky Beast funkybe...@pacific.net.sg: I did read that, but I'm just wondering isn't 9.98767967 more approximate to 10 than 9? How do you round a month? It makes sense that the function only gives full months, imo. Either way, I

[fpc-pascal] Re: Possible bug in return value of MonthsBetween function in unit dateutils

2009-12-10 Thread Funky Beast
Marco van de Voort wrote: In our previous episode, Henry Vermaak said: 2009/12/10 Funky Beast funkybeast-s7p20sfedvbhupcrv1q...@public.gmane.org: I did read that, but I'm just wondering isn't 9.98767967 more approximate to 10 than 9? How do you round a month? It makes sense that the

[fpc-pascal] Make Pascal library usable for C (on Linux)

2009-12-10 Thread Matthias Klumpp
Hello! I write C-headers for a library written in Pascal at time, to make it usable within C applications. On Linux, the libtool-program (part of GNU autotools) generates the necessary files for C-compilers to link against the library (libxyz.la, libxyz.a, libxyz.pc) How can I use libtool for