Re: [fpc-pascal] more questions on storage

2007-09-27 Thread Marc Weustink
Mattias Gaertner wrote: On Thu, 27 Sep 2007 12:38:13 +0200 (CEST) [EMAIL PROTECTED] (Marco van de Voort) wrote: [EMAIL PROTECTED] (Marco van de Voort) wrote: A cast is really a cast. IOW the cast pchar(ansistring) is mostly a no-op. Traditional C code then usually treats the #0 as end of strin

Re: [fpc-pascal] more questions on storage

2007-09-27 Thread Mattias Gaertner
On Thu, 27 Sep 2007 12:38:13 +0200 (CEST) [EMAIL PROTECTED] (Marco van de Voort) wrote: > > [EMAIL PROTECTED] (Marco van de Voort) wrote: > > > A cast is really a cast. IOW the cast pchar(ansistring) is mostly > > > a no-op. Traditional C code then usually treats the #0 as end of > > > string. >

Re: [fpc-pascal] more questions on storage

2007-09-27 Thread Michael Van Canneyt
On Thu, 27 Sep 2007, Marco van de Voort wrote: > > [EMAIL PROTECTED] (Marco van de Voort) wrote: > > > A cast is really a cast. IOW the cast pchar(ansistring) is mostly a > > > no-op. Traditional C code then usually treats the #0 as end of > > > string. > > > > PChar(AnsiString) was a no-op ty

Re: [fpc-pascal] more questions on storage

2007-09-27 Thread Marco van de Voort
> [EMAIL PROTECTED] (Marco van de Voort) wrote: > > A cast is really a cast. IOW the cast pchar(ansistring) is mostly a > > no-op. Traditional C code then usually treats the #0 as end of > > string. > > PChar(AnsiString) was a no-op typecast in the past and is nowadays a > function. It checks whe

Re: [fpc-pascal] more questions on storage

2007-09-27 Thread Mattias Gaertner
On Wed, 26 Sep 2007 16:29:20 +0200 (CEST) [EMAIL PROTECTED] (Marco van de Voort) wrote: > > Am Mittwoch, den 26.09.2007, 13:24 +0200 schrieb Marco van de Voort: > > > > > > > > > > Ansistrings (and thus {$longstrings on}) work fine. > > > > > > > > Ah, okay. The Fog is lifting fastly. :) > > > >

Re: [fpc-pascal] fpc 2.2.0 win32_arm-linux cross-compiler issue

2007-09-27 Thread Paul Nicholls
On 26/09/2007, Peter Vreman <[EMAIL PROTECTED]> wrote: > > > WinCE is the default ARM target if a cross compiler is build under > Windows. You need to specify > -Tlinux on the commandline or add it to fpc.cfg to make it the default: > > #ifdef cpuarm > -Tlinux > #endif > > Sorry, ignore the #ifd

Re: [fpc-pascal] fpc 2.2.0 win32_arm-linux cross-compiler issue

2007-09-27 Thread Paul Nicholls
On 26/09/2007, Peter Vreman <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I have downloaded the freepascal 2.2.0 fpc source code ( > > fpcbuild-2.2.0.zip) and attempted to create a arm-linux cross-compiler > that > > runs under win32. I have done this previously with the fpcbuild-2.0.4.zip > >