Re: [fpc-devel] THandle and 64bit platforms

2005-08-02 Thread Vincent Snijders
Marc Weustink wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Florian Klaempfl Sent: dinsdag 21 december 2004 8:30 Peter Vreman wrote: My proposal is to rename the current THandle to TFileHandle. And add an platform independent type THandle=PtrUInt. Note that this can

Re: [fpc-devel] THandle and 64bit platforms

2004-12-21 Thread Michael Van Canneyt
On Tue, 21 Dec 2004, Florian Klaempfl wrote: Peter Vreman wrote: That said, the RTL should also avoid confusion with the Windows/Delphi THandle type, and introduce a cross-platform and opaque TFileHandle type. It's text/file/file of in pascal ;) Which will happen to be equal to

Re: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Peter Vreman
Hi, From what I understand from the definition of THandle in sysunixh.inc it is defined as a LongInt, even on 64 bit platforms. Currently I'm porting Lazarus to x64 and there I need a 64bit THandle, how to solve it ? File descriptors are still 32bit on x86_64, therefor Thandle=32bit.

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Marc Weustink
Hi, From what I understand from the definition of THandle in sysunixh.inc it is defined as a LongInt, even on 64 bit platforms. Currently I'm porting Lazarus to x64 and there I need a 64bit THandle, how to solve it ? File descriptors are still 32bit on x86_64, therefor Thandle=32bit. A

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Peter Vreman
Hi, From what I understand from the definition of THandle in sysunixh.inc it is defined as a LongInt, even on 64 bit platforms. Currently I'm porting Lazarus to x64 and there I need a 64bit THandle, how to solve it ? File descriptors are still 32bit on x86_64, therefor Thandle=32bit. A

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Marc Weustink
Hi, From what I understand from the definition of THandle in sysunixh.inc it is defined as a LongInt, even on 64 bit platforms. Currently I'm porting Lazarus to x64 and there I need a 64bit THandle, how to solve it ? File descriptors are still 32bit on x86_64, therefor Thandle=32bit. A

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Peter Vreman
Hi, From what I understand from the definition of THandle in sysunixh.inc it is defined as a LongInt, even on 64 bit platforms. Currently I'm porting Lazarus to x64 and there I need a 64bit THandle, how to solve it ? File descriptors are still 32bit on x86_64, therefor Thandle=32bit. A

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Marc Weustink
At 20:34 20-12-2004, [EMAIL PROTECTED] wrote: On Mon, 20 Dec 2004, Peter Vreman wrote: Hi, From what I understand from the definition of THandle in sysunixh.inc it is defined as a LongInt, even on 64 bit platforms. Currently I'm porting Lazarus to x64 and there I need a 64bit THandle,

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Tomas Hajny
Date sent: Mon, 20 Dec 2004 21:02:04 +0100 To: FPC developers' list [EMAIL PROTECTED] From: Marc Weustink [EMAIL PROTECTED] Subject:RE: [fpc-devel] THandle and 64bit platforms Send reply to: FPC developers' list [EMAIL

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Michael . VanCanneyt
On Mon, 20 Dec 2004, Tomas Hajny wrote: Date sent:Mon, 20 Dec 2004 21:02:04 +0100 To: FPC developers' list [EMAIL PROTECTED] From: Marc Weustink [EMAIL PROTECTED] Subject: RE: [fpc-devel] THandle and 64bit platforms Send reply

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Tomas Hajny
Date sent: Mon, 20 Dec 2004 22:50:06 +0100 (CET) From: [EMAIL PROTECTED] To: [EMAIL PROTECTED], FPC developers' list [EMAIL PROTECTED] Subject:RE: [fpc-devel] THandle and 64bit platforms Copies to: Send reply

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Michael . VanCanneyt
On Mon, 20 Dec 2004, Tomas Hajny wrote: Date sent:Mon, 20 Dec 2004 22:50:06 +0100 (CET) From: [EMAIL PROTECTED] To: [EMAIL PROTECTED], FPC developers' list [EMAIL PROTECTED] Subject: RE: [fpc-devel] THandle and 64bit

Re: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Florian Klaempfl
[EMAIL PROTECTED] wrote: On Mon, 20 Dec 2004, Tomas Hajny wrote: Date sent: Mon, 20 Dec 2004 21:02:04 +0100 To: FPC developers' list [EMAIL PROTECTED] From: Marc Weustink [EMAIL PROTECTED] Subject:RE: [fpc-devel] THandle and 64bit

Re: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Michael . VanCanneyt
] Subject:RE: [fpc-devel] THandle and 64bit platforms Send reply to: FPC developers' list [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] File descriptors are still 32bit on x86_64, therefor Thandle=32bit. A THandle is more than a file descriptor alone

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Marc Weustink
At 22:50 20-12-2004, [EMAIL PROTECTED] wrote: On Mon, 20 Dec 2004, Tomas Hajny wrote: From: Marc Weustink [EMAIL PROTECTED] File descriptors are still 32bit on x86_64, therefor Thandle=32bit. A THandle is more than a file descriptor alone. Since the LCL is

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Michael . VanCanneyt
On Tue, 21 Dec 2004, Marc Weustink wrote: This will take some work :-) For adapting Lazarus I've no problems with it. For ppl wanting to port apps I see more problems. Especially when a shorter version of it exists. Besides I don't know what other Lazarus devels think People who want

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Marc Weustink
At 00:15 21-12-2004, [EMAIL PROTECTED] wrote: On Tue, 21 Dec 2004, Marc Weustink wrote: This will take some work :-) For adapting Lazarus I've no problems with it. For ppl wanting to port apps I see more problems. Especially when a shorter version of it exists. Besides I don't know what

RE: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread peter green
I guess this is no solution. It makes porting delphi apps very hard. What's the problem if thandle is 64 bit on 64 bit systems? You can still store a 32 bit file handle in it. the only place I could see is var parameters. and if needed that could be got around by overloading functions users

Re: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Peter Vreman
That said, the RTL should also avoid confusion with the Windows/Delphi THandle type, and introduce a cross-platform and opaque TFileHandle type. It's text/file/file of in pascal ;) Which will happen to be equal to THandle on 32-bit windows. On 32-bit Linux, the definition of THandle will

Re: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Florian Klaempfl
Peter Vreman wrote: That said, the RTL should also avoid confusion with the Windows/Delphi THandle type, and introduce a cross-platform and opaque TFileHandle type. It's text/file/file of in pascal ;) Which will happen to be equal to THandle on 32-bit windows. On 32-bit Linux, the definition of

Re: [fpc-devel] THandle and 64bit platforms

2004-12-20 Thread Marco van de Voort
On Tue, 21 Dec 2004, Marc Weustink wrote: The 2.000.000.000 EUR question is then, who will do this work? ;-) I did some counting: Rtl: 489 times (excluding win32, including os2, including comments) Lazarus: 105 times (exluding win32 and docs) Hmm. I can give you an