Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-08 Thread Florian Klämpfl
Am 07.04.2017 um 16:15 schrieb Marco van de Voort: > In our previous episode, African Wild Dog said: >> Which integer types have their size dependent on platform? >> E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform. > > In Delphi they retroactively equated longint to C long, bei

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread African Wild Dog
2017-04-07 12:33 GMT-03:00 Michael Van Canneyt : > > > On Fri, 7 Apr 2017, African Wild Dog wrote: > > 2017-04-07 12:10 GMT-03:00 Michael Van Canneyt : >> >> >>> NativeInt and NativeUInt are indeed provided for Delphi compatibility. >>> >>> Which integer type to chose : That depends. What do you w

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread Michael Van Canneyt
On Fri, 7 Apr 2017, African Wild Dog wrote: 2017-04-07 12:10 GMT-03:00 Michael Van Canneyt : NativeInt and NativeUInt are indeed provided for Delphi compatibility. Which integer type to chose : That depends. What do you want to achieve exactly ? In Delphi, if i want an integer type whic

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread African Wild Dog
2017-04-07 12:10 GMT-03:00 Michael Van Canneyt : > > NativeInt and NativeUInt are indeed provided for Delphi compatibility. > > Which integer type to chose : That depends. What do you want to achieve > exactly ? > > In Delphi, if i want an integer type which depends on the target platform (32 or 6

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread Marco van de Voort
In our previous episode, African Wild Dog said: > > > http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Internal_Data_Formats_(Delphi)#Platform-Independent_Signed_Integer_Types > . > As Marco have pointed out, in Windows the Delphi's LongInt type is always > 32-bits. On other platforms is platform

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread Michael Van Canneyt
On Fri, 7 Apr 2017, African Wild Dog wrote: 2017-04-06 18:50 GMT-03:00 Mattias Gaertner : Why do you think that Delphi's longint has 64bits anywhere? Delphi's NativeInt is 32 or 64bit depending on platform. http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Internal_Data_Formats_(Delphi)#P

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread Michael Van Canneyt
On Fri, 7 Apr 2017, African Wild Dog wrote: 2017-04-07 11:15 GMT-03:00 Marco van de Voort : In our previous episode, African Wild Dog said: Which integer types have their size dependent on platform? E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform. In Delphi they retroa

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread Marco van de Voort
In our previous episode, African Wild Dog said: > > On FPC it is always 32-bit. Ptrint and ptruint scale with pointer size, and > > integer depends on compilation mode, 16 or 32-bit. > > > So, is the size of "Integer" type dependent on the compilation mode? Yes. > (Delphi is always 32 bits) In

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread African Wild Dog
2017-04-06 18:50 GMT-03:00 Mattias Gaertner : > Why do you think that Delphi's longint has 64bits anywhere? > Delphi's NativeInt is 32 or 64bit depending on platform. > > http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Internal_Data_Formats_(Delphi)#Platform-Independent_Signed_Integer_Types . As

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread African Wild Dog
2017-04-07 11:15 GMT-03:00 Marco van de Voort : > In our previous episode, African Wild Dog said: > > Which integer types have their size dependent on platform? > > E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform. > > In Delphi they retroactively equated longint to C long, bein

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-07 Thread Marco van de Voort
In our previous episode, African Wild Dog said: > Which integer types have their size dependent on platform? > E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform. In Delphi they retroactively equated longint to C long, being 32-bit on 64-bits windows and 64-bit on Linux. The Delph

Re: [fpc-pascal] Platform Dependent Integer Types

2017-04-06 Thread Mattias Gaertner
On Thu, 6 Apr 2017 18:25:40 -0300 African Wild Dog wrote: > Which integer types have their size dependent on platform? > E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform. Why do you think that Delphi's longint has 64bits anywhere? Delphi's NativeInt is 32 or 64bit depending on

[fpc-pascal] Platform Dependent Integer Types

2017-04-06 Thread African Wild Dog
Which integer types have their size dependent on platform? E.g. in Delphi, LongInt can 32 or 64 bits depending on the platform. The documentation says "every platform has a ”native” integer size, depending on whether the platform is 8-bit, 16-bit, 32-bit or 64-bit. e.g. On AVR this is 8-bit. ", but

Re: [fpc-pascal] Platform independent alternatives

2011-06-23 Thread dhkblaszyk
On Thu, 23 Jun 2011 15:38:18 -0300, Flávio Etrusco wrote: On Thu, Jun 23, 2011 at 3:18 PM, wrote: Hi, I'm porting an app from Delphi to Lazarus when I came across a couple of functions from the windows unit. Can anyone help me finding the platform independent alternatives? TerminateThrea

[fpc-pascal] Platform independent alternatives

2011-06-23 Thread dhkblaszyk
ZeelandNet Webmail Hi, I'm porting an app from Delphi to Lazarus when I came across a couple of functions from the windows unit. Can anyone help me finding the platform independent alternatives? TerminateThread WaitForSingleObject CloseHandle TIA, Darius __

Re: [fpc-pascal] Platform independent alternatives

2011-06-23 Thread Flávio Etrusco
On Thu, Jun 23, 2011 at 3:18 PM, wrote: > Hi, > > I'm porting an app from Delphi to Lazarus when I came across a couple of > functions from the windows unit. Can anyone help me finding the platform > independent alternatives? > > TerminateThread You shouldn't use it, generally speaking. > Wait

[fpc-pascal] Platform

2007-11-05 Thread Carsten Bager
Is there a way in the fpc.cfg file to detect what platform the (arm) cross compiler is running on (not the target platform). I want to do one thing when compiling on a win32 platform and another thing when compiling on a Linux platform (commands to the linker and the -Tlinux command on the win32 p

Re: [fpc-pascal] platform independant wait

2006-03-04 Thread Marc Santhoff
Am Samstag, den 04.03.2006, 19:33 +0100 schrieb Vincent Snijders: > Marc Santhoff wrote: > > Hi, > > > > the subject tells what I'm searching for: > > > > How can i wait a definit amount of time in a platform independant way? > > > > I need to pause a while loop for 1 second. The program should

Re: [fpc-pascal] platform independant wait

2006-03-04 Thread Vincent Snijders
Marc Santhoff wrote: Hi, the subject tells what I'm searching for: How can i wait a definit amount of time in a platform independant way? I need to pause a while loop for 1 second. The program should run at least on FreeBSD and Windows. while NOT doStop do begin { wait a little }

Re: [fpc-pascal] platform independant wait

2006-03-04 Thread Jonas Maebe
On 04 Mar 2006, at 19:16, Marc Santhoff wrote: How can i wait a definit amount of time in a platform independant way? There's the delay() procedure in the crt unit. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.fre

[fpc-pascal] platform independant wait

2006-03-04 Thread Marc Santhoff
Hi, the subject tells what I'm searching for: How can i wait a definit amount of time in a platform independant way? I need to pause a while loop for 1 second. The program should run at least on FreeBSD and Windows. while NOT doStop do begin { wait a little } doSomethi