[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 everyon

[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" 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 > Result:=Trunc(Abs(

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 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 ano

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

2008-12-31 Thread leledumbo
What if I replace libc's MM code with FPC one? Is it permitted? -- View this message in context: http://www.nabble.com/Using-FPC-MM-in-a-C-program-tp21229445p21230388.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc

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 plug

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

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

2008-12-31 Thread César Espinoza
Hi all I'm sorry in advanced about my poor english (I'm spanish talking) I am returning to pascal, and in OSX 10.5.5, fpk 2.2.2 (installed from .dmg) I tried this: program first; var a:integer; begin a:=1; writeln (a); end. But when I tried compling the response was: Free Pascal Compiler

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" wrote: > > > Is this broken or am I missing something? > > I suspect the problem is in this function: > > Function SecondsBetween(const ANow, AThen: TDateTime): Int64;

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

2008-12-31 Thread Joost van der Sluis
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 as not found, switching

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 Compil