[fpc-devel] Compiling fpc 2.0.x without text IDE (errors in revision 3626)

2006-05-22 Thread Graeme Geldenhuys
Hi At the moment I am using the following to compile FPC. make install INSTALL_PREFIX=/opt/fpc_2.0.x I never use the text ide (fp) and am getting compiler errors with it, after getting a svn update (revision 3626). 1) Conflict in the ide/MakeFile was checked into SVN. 2) After fixing that, I

[fpc-devel] Re: Compiling fpc 2.0.x without text IDE (errors in revision 3626)

2006-05-22 Thread Graeme Geldenhuys
Hi, I looked into the main Makefile, to see if I could spot anything, so tried: make install INSTALL_PREFIX=/opt/fpc_2.0.x TARGET_DIRS_IDE=0 but that also didn't do it. It still tried to compile the text ide project. Regards, Graeme. On 5/22/06, Graeme Geldenhuys <[EMAIL PROTECTED]> wrot

Re: [fpc-devel] Compiling fpc 2.0.x without text IDE (errors in revision 3626)

2006-05-22 Thread Daniël Mantione
Op Mon, 22 May 2006, schreef Graeme Geldenhuys: > Hi > At the moment I am using the following to compile FPC. > > make install INSTALL_PREFIX=/opt/fpc_2.0.x > > I never use the text ide (fp) and am getting compiler errors with it, > after getting a svn update (revision 3626). > > 1) Conflic

Re: [fpc-devel] Compiling fpc 2.0.x without text IDE (errors in revision 3626)

2006-05-22 Thread Graeme Geldenhuys
On 5/22/06, Daniël Mantione <[EMAIL PROTECTED]> wrote: You can make individual subprojects, for example "make compiler_cycle rtl fv fcl", however, I don't think this is comfortable. Better fix the IDE compilation, try "fpcmake -Tall" in the IDE directory. OK, I did that fpcmake, though I ain't

Re: [fpc-devel] Compiling fpc 2.0.x without text IDE (errors in revision 3626)

2006-05-22 Thread Daniël Mantione
Op Mon, 22 May 2006, schreef Graeme Geldenhuys: > On 5/22/06, Daniël Mantione <[EMAIL PROTECTED]> wrote: > > OK, I did that fpcmake, though I ain't sure what it did. I did say > > something of creating a new Makefile. That is what it does indeed. > > -Fu/opt/svn/fpc_2.0.x/src/rtl/units/i386-

Re: [fpc-devel] TProcess.output.read does not return until process stopped running.

2006-05-22 Thread Bram Kuijvenhoven
Jonas Maebe wrote: On 19 mei 2006, at 15:20, ik wrote: When executing a program using TProcess, it seems that Output.read does not return from the reading, until the execution of the process is over. The returning probably happens every 4KB of data or so (and once the program has finished). T

[fpc-devel] slightly misleading fpc makefile hint

2006-05-22 Thread Пётр Косаревский
In recent binutils the program "pwd.exe" (it returns current directory name) is omitted. But makefile fails with a hint "You need GNU utils package..." (well, it does not explicitly write, that it needs binutils). Why don't emit "You need GNU utils package... (pwd.exe)"? (PWD.EXE and some vers

Re: [fpc-devel] Compiling fpc 2.0.x without text IDE (errors in revision 3626)

2006-05-22 Thread Graeme Geldenhuys
On 5/22/06, Daniël Mantione <[EMAIL PROTECTED]> wrote: > > -Fu/opt/svn/fpc_2.0.x/src/rtl/units/i386-linux It adds the rtl directory correctly. Please check is keyboard.ppu is present there. Yup! [EMAIL PROTECTED]:/opt/svn/fpc_2.0.x/src/rtl/units/i386-linux$ ls -l keyboard.* -rw-r--r-- 1 grae

Re: [fpc-devel] Compiling fpc 2.0.x without text IDE (errors in revision 3626)t

2006-05-22 Thread Marco van de Voort
> > At the moment I am using the following to compile FPC. > > make install INSTALL_PREFIX=/opt/fpc_2.0.x Try IDE=0, if that doesn't work, try renaming the fv dir. Both used to work, but don't know if they still do. ___ fpc-devel maillist - fpc-d

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Bram Kuijvenhoven
Michael Van Canneyt wrote: The following remark in the Delphi help sheds more light on the issue: "When working with negative TDateTime values, computations must handle time portion separately. The fractional part reflects the fraction of a 24-hour day without regard to the sign of the TDateTime

Re: [fpc-devel] Compiling fpc 2.0.x without text IDE (errors in revision 3626)t

2006-05-22 Thread Graeme Geldenhuys
I did notice that if I renamed the ide directory to ide.old, it managed to compile, but I wasn't sure if it would maybe skip other units it shouldn't have, so wondered it there was a parameter I could pass to make, to do it correctly. I will try the IDE=0 now... Graeme. On 5/22/06, Marco van d

Re: [fpc-devel] Compiling fpc 2.0.x without text IDE (errors in revision 3626)t

2006-05-22 Thread Graeme Geldenhuys
Using IDE=0 doesn't work here, it still tried to compile the ide directory. Graeme. On 5/22/06, Marco van de Voort <[EMAIL PROTECTED]> wrote: > > At the moment I am using the following to compile FPC. > > make install INSTALL_PREFIX=/opt/fpc_2.0.x Try IDE=0, if that doesn't work, try renami

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Michael Van Canneyt
On Mon, 22 May 2006, Bram Kuijvenhoven wrote: Michael Van Canneyt wrote: The following remark in the Delphi help sheds more light on the issue: "When working with negative TDateTime values, computations must handle time portion separately. The fractional part reflects the fraction of a 24-ho

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Marco van de Voort
> On Mon, 22 May 2006, Bram Kuijvenhoven wrote: > > This is really bad -- I supposed the TDateTime was a nice 'linear' mapping > > of > > time (which is much nicer for all kinds of calculations). > > It is, but only for dates after 1899-12-30. God only knows why Microsoft > picked this date. Ju

Re: [fpc-devel] Compiling fpc 2.0.x without text IDE (errors in revision 3626)

2006-05-22 Thread Daniël Mantione
Op Mon, 22 May 2006, schreef Graeme Geldenhuys: > On 5/22/06, Daniël Mantione <[EMAIL PROTECTED]> wrote: > > > > -Fu/opt/svn/fpc_2.0.x/src/rtl/units/i386-linux > > > > > > > > > > It adds the rtl directory correctly. Please check is > > > > keyboard.ppu is > > > > > present there. > > > > > > >

Re: [fpc-devel] Compiling fpc 2.0.x without text IDE (errors in revision 3626)

2006-05-22 Thread Graeme Geldenhuys
On 5/22/06, Daniël Mantione <[EMAIL PROTECTED]> wrote: > > > > I do notice that the date on those files are from the previous > > > > time I > > > > built fpc 2.0.3. I guess if keyboard.pp hasn't change since > > > > then, > > > > "make install ..." wouldn't recompile it. Or does 'make > > > >

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Graeme Geldenhuys
On 5/22/06, Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: I guess we will need plenty of unit tests to make sure all the functions work consistent, in particular also for dates close to and before 29-12-1899 :) (Note: I sent some mail explaining the TryEncodeDateTime function some time ago (21-

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Michael Van Canneyt
On Mon, 22 May 2006, Graeme Geldenhuys wrote: On 5/22/06, Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: I guess we will need plenty of unit tests to make sure all the functions work consistent, in particular also for dates close to and before 29-12-1899 :) (Note: I sent some mail explaining

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Florian Klaempfl
Michael Van Canneyt wrote: > > > On Mon, 22 May 2006, Graeme Geldenhuys wrote: > >> On 5/22/06, Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: >>> I guess we will need plenty of unit tests to make sure all the functions >> work consistent, in particular also for dates close to and before >> 29-12

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Michael Van Canneyt
On Mon, 22 May 2006, Florian Klaempfl wrote: Michael Van Canneyt wrote: On Mon, 22 May 2006, Graeme Geldenhuys wrote: On 5/22/06, Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: I guess we will need plenty of unit tests to make sure all the functions work consistent, in particular also for

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Florian Klaempfl
Michael Van Canneyt wrote: > > > On Mon, 22 May 2006, Florian Klaempfl wrote: > >> Michael Van Canneyt wrote: >>> >>> >>> On Mon, 22 May 2006, Graeme Geldenhuys wrote: >>> On 5/22/06, Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: > I guess we will need plenty of unit tests to make sure a

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Michael Van Canneyt
On Mon, 22 May 2006, Florian Klaempfl wrote: Michael Van Canneyt wrote: On Mon, 22 May 2006, Florian Klaempfl wrote: Michael Van Canneyt wrote: On Mon, 22 May 2006, Graeme Geldenhuys wrote: On 5/22/06, Bram Kuijvenhoven <[EMAIL PROTECTED]> wrote: I guess we will need plenty of unit

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Florian Klaempfl
Michael Van Canneyt wrote: > 1. fpcunit didn't exist at the time the FPC tests were implemented. > 2. Using FPCunit creates a dependency on it. The tests can run mostly >with only the system unit... Which dependencies? Maybe they can be reduced and a fpcunit can be ad

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Graeme Geldenhuys
On 5/22/06, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > Should we convert existing tests to fpcunit ? No, too much work, no real gain :) Just curious... I have never looked at the tests created in FPC, but how much work (lines of code) would it take to test something like the following sni

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Vincent Snijders
Graeme Geldenhuys schreef: On 5/22/06, Florian Klaempfl <[EMAIL PROTECTED]> wrote: > Should we convert existing tests to fpcunit ? No, too much work, no real gain :) Just curious... I have never looked at the tests created in FPC, but how much work (lines of code) would it take to test some

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Florian Klaempfl
Vincent Snijders wrote: > dt := EncodeDateTime(1652, 6, 15, 12, 34, 56, 12); > if '1652-06-15 12:34:56' <> tiUtils.tiDateTimeAsIntlDateDisp(dt) >then halt(5); > > [] > end. We use the simple approach with halt because using the fpcunit for basic tests would require that OOP works always

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Michael Van Canneyt
On Mon, 22 May 2006, Florian Klaempfl wrote: Vincent Snijders wrote: dt := EncodeDateTime(1652, 6, 15, 12, 34, 56, 12); if '1652-06-15 12:34:56' <> tiUtils.tiDateTimeAsIntlDateDisp(dt) then halt(5); [] end. We use the simple approach with halt because using the fpcunit for basic t

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Jonas Maebe
On 22 mei 2006, at 16:38, Florian Klaempfl wrote: We use the simple approach with halt because using the fpcunit for basic tests would require that OOP works always but it could be easily broken and thus all tests would fail. So we designed the test suite in a way which keeps prerequisits a

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Graeme Geldenhuys
Ok, so every set of tests is a actual program. [I am not forcing fpcUnit, just curious as what FPC's tests can do. Also not sure what your knowlegde is on the workings of a xUnit testing framework. ] So if you have to test something a little more complex, and every unittest needs some predefine

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Jonas Maebe
On 22 mei 2006, at 17:01, Graeme Geldenhuys wrote: Where in SubVersion are the fpc tests located? fpc/tests Jonas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Michael Van Canneyt
On Mon, 22 May 2006, Graeme Geldenhuys wrote: Ok, so every set of tests is a actual program. [I am not forcing fpcUnit, just curious as what FPC's tests can do. Also not sure what your knowlegde is on the workings of a xUnit testing framework. ] So if you have to test something a little mor

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Graeme Geldenhuys
On 5/22/06, Florian Klaempfl <[EMAIL PROTECTED]> wrote: We use the simple approach with halt because using the fpcunit for basic tests would require that OOP works always but it could be easily broken and thus all tests would fail. So we designed the test suite in a way which keeps prerequisits a

[fpc-devel] shared libraries on x86_64 Linux ?

2006-05-22 Thread Dominique Leducq
Hello, I'm new to this list (and to Free Pascal...) What are the news from bug #6618 (ex 4733), on building shared libraries on a x86_64 architecture? http://www.freepascal.org/mantis/view.php?id=6618 I did some tests, and it seems to bee still present in 2.0.2 and current 2.1.1 snapshot (I en

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Florian Klaempfl
Jonas Maebe wrote: > > On 22 mei 2006, at 16:38, Florian Klaempfl wrote: > >> We use the simple approach with halt because using the fpcunit for >> basic tests >> would require that OOP works always but it could be easily broken and >> thus all >> tests would fail. So we designed the test suite i

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Joost van der Sluis
The attached patch fixs some problems with negative TDateTimes. It could be that the changes in DecodeDate are for the same problem as Bram already send a patch for: + removed obsolete DayTable + fixed DateTimeToTimestamp, EncodeDate, DecodeDate, DecodeTime for TDatetimes < 0 + MSecsToTimeSt

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Vincent Snijders
Michael Van Canneyt wrote: On Mon, 22 May 2006, Graeme Geldenhuys wrote: Ok, so every set of tests is a actual program. [I am not forcing fpcUnit, just curious as what FPC's tests can do. Also not sure what your knowlegde is on the workings of a xUnit testing framework. ] So if you have to

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Florian Klaempfl
The makefile of the testsuite now simply gets the fpcunit from the fcl dir and compiles it if necessary. Since the fpcunit depends only on rtl units, I see no problem with this. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepa

Re: [fpc-devel] shared libraries on x86_64 Linux ?

2006-05-22 Thread Florian Klaempfl
Dominique Leducq wrote: > Hello, > > I'm new to this list (and to Free Pascal...) > > What are the news from bug #6618 (ex 4733), on building shared libraries on a > x86_64 architecture? > http://www.freepascal.org/mantis/view.php?id=6618 > > I did some tests, and it seems to bee still present

Re: [fpc-devel] Adding constants to defines.inc (windows)

2006-05-22 Thread Florian Klaempfl
Giulio Bernardi wrote: > Hi, > I was playing around with lazarus and I found that solution to a bug > (6950) is trivial. > But it needs a constant (SPI_GETFLATMENU) that is not in > rtl/win/wininc/defines.inc > (or rtl/win32/wininc/defines.inc for fpc 2.0.x). > Is it ok if I send a patch to add all

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Micha Nelissen
On Mon, 22 May 2006 18:07:52 +0200 Joost van der Sluis <[EMAIL PROTECTED]> wrote: > The attached patch fixs some problems with negative TDateTimes. Can you introduce constants instead of all these hardcoded numbers so the code is more readable ? Micha

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Vincent Snijders
Micha Nelissen wrote: On Mon, 22 May 2006 18:07:52 +0200 Joost van der Sluis <[EMAIL PROTECTED]> wrote: The attached patch fixs some problems with negative TDateTimes. Can you introduce constants instead of all these hardcoded numbers so the code is more readable ? Maybe Brams mail shoul

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Graeme Geldenhuys
On 5/22/06, Vincent Snijders <[EMAIL PROTECTED]> wrote: > Can you introduce constants instead of all these hardcoded numbers so the > code is more readable ? > Maybe Brams mail should be incorporated, given the fact that the constants don't have a clear meaning. Vincent. This is exactly why

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Graeme Geldenhuys
On 5/22/06, Vincent Snijders <[EMAIL PROTECTED]> wrote: From Greame I would like to know how he proposes to update the TestSuite, if a new tests it added. I am busy looking at the /tests directory now, to understand how tests get grouped. This should give me a clearer idea of what is possible.

Re: [fpc-devel] Definition of the time-fration in a TDateTime before 30/12/1899

2006-05-22 Thread Joost van der Sluis
On Mon, 2006-05-22 at 23:06 +0200, Graeme Geldenhuys wrote: > On 5/22/06, Vincent Snijders <[EMAIL PROTECTED]> wrote: > > From Greame I would like to know how he proposes to update the > > TestSuite, if a new tests it added. > > I am busy looking at the /tests directory now, to understand how tes

Re: [fpc-devel] Adding constants to defines.inc (windows)

2006-05-22 Thread Felipe Monteiro de Carvalho
On 5/21/06, Giulio Bernardi <[EMAIL PROTECTED]> wrote: Should they be merged or left separate from the others? I mean, something like: SPI_SETWORKAREA = 47; { Windows Me/2000 and higher } SPI_GETACTIVEWINDOWTRACKING = 4096; I think it is a a good thing to add this small comment about

RE: [fpc-devel] shared libraries on x86_64 Linux ?

2006-05-22 Thread Dominique Leducq
> -Message d'origine- > De : Florian Klaempfl [mailto:[EMAIL PROTECTED] > Envoyé : lundi 22 mai 2006 19:56 > À : [EMAIL PROTECTED]; FPC developers' list > Objet : Re: [fpc-devel] shared libraries on x86_64 Linux ? > > Dominique Leducq wrote: > > Hello, > > > > I'm new to this list (and t