[fpc-pascal] Warning strftime format

2008-12-31 Thread ik
Hi, I had a very small and nasty bug that I discovered today. I use strftime to format a date, and I accidentally used the %g option rather then %y. The difference is that %g is returning the year of the week (2009 this week), while %y return the year of today (2008). So I wanted to warn

[fpc-pascal] Using FPC MM in a C program

2008-12-31 Thread leledumbo
Since it's possible to use libc's MM via cmem unit, would the opposite be possible? -- View this message in context: http://www.nabble.com/Using-FPC-MM-in-a-C-program-tp21229445p21229445.html Sent from the Free Pascal - General mailing list archive at Nabble.com.

Re: [fpc-pascal] Using FPC MM in a C program

2008-12-31 Thread Michael Van Canneyt
On Wed, 31 Dec 2008, leledumbo wrote: Since it's possible to use libc's MM via cmem unit, would the opposite be possible? From the point of view of FPC, there should not be a big problem. The C library, this is another matter. I am not sure that it supports plugging in a memory manager.

Re: [fpc-pascal] DateTimeToUnix bug?

2008-12-31 Thread Michael Van Canneyt
On Tue, 30 Dec 2008, John Coppens wrote: On Tue, 30 Dec 2008 09:25:29 -0700 Seth Grover sethdgro...@gmail.com wrote: Is this broken or am I missing something? I suspect the problem is in this function: Function SecondsBetween(const ANow, AThen: TDateTime): Int64; begin

Re: [fpc-pascal] Using FPC MM in a C program

2008-12-31 Thread Krishna
On Wed, Dec 31, 2008 at 4:39 PM, Michael Van Canneyt mich...@freepascal.org wrote: On Wed, 31 Dec 2008, leledumbo wrote: Since it's possible to use libc's MM via cmem unit, would the opposite be possible? From the point of view of FPC, there should not be a big problem. The C library,

Re: [fpc-pascal] Using FPC MM in a C program

2008-12-31 Thread Vinzent Höfler
Michael Van Canneyt wrote: On Wed, 31 Dec 2008, leledumbo wrote: Since it's possible to use libc's MM via cmem unit, would the opposite be possible? From the point of view of FPC, there should not be a big problem. The C library, this is another matter. I am not sure that it supports

Re: [fpc-pascal] Using FPC MM in a C program

2008-12-31 Thread Michael Van Canneyt
On Wed, 31 Dec 2008, Vinzent Höfler wrote: Michael Van Canneyt wrote: On Wed, 31 Dec 2008, leledumbo wrote: Since it's possible to use libc's MM via cmem unit, would the opposite be possible? From the point of view of FPC, there should not be a big problem. The C library,

Re: [fpc-pascal] DateTimeToUnix bug?

2008-12-31 Thread Joost van der Sluis
Op dinsdag 30-12-2008 om 21:44 uur [tijdzone -0200], schreef John Coppens: On Tue, 30 Dec 2008 09:25:29 -0700 Seth Grover sethdgro...@gmail.com wrote: Is this broken or am I missing something? I suspect the problem is in this function: Function SecondsBetween(const ANow, AThen:

Re: [fpc-pascal] Error: Assembler as not found, switching to external assembling

2008-12-31 Thread Giulio Bernardi
Joost van der Sluis ha scritto: Op woensdag 31-12-2008 om 09:11 uur [tijdzone -0500], schreef César Espinoza: Free Pascal Compiler version 2.2.2 [2008/08/03] for i386 Copyright (c) 1993-2008 by Florian Klaempfl Target OS: Darwin for i386 Compiling program1.pas Assembling first Error: Assembler

[fpc-pascal] Free Pascal to Red Code.

2008-12-31 Thread Skybuck Flying
Free Pascal to Red Code compiling... Can it be done ? ;) Could make free pascal a little bit more interesting :) Bye, Skybuck :) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Error: Assembler as not found, switching to external assembling

2008-12-31 Thread Jonas Maebe
On 31 Dec 2008, at 17:04, Giulio Bernardi wrote: Joost van der Sluis ha scritto: Op woensdag 31-12-2008 om 09:11 uur [tijdzone -0500], schreef César Espinoza: Free Pascal Compiler version 2.2.2 [2008/08/03] for i386 Copyright (c) 1993-2008 by Florian Klaempfl Target OS: Darwin for i386