[fpc-pascal] #26 as EOF marker?

Tomas Hajny XHajT03 at mbox.vol.cz
Wed Sep 2 18:58:51 CEST 2009


On Wed, September 2, 2009 17:20, Cox, Stuart TRAN:EX wrote:
> And the grandfather of the whole line, CP/M.

Well, if we had CP/M target in FPC, sure...

Tomas


> -----Original Message-----
> From: fpc-pascal-bounces at lists.freepascal.org
> [mailto:fpc-pascal-bounces at lists.freepascal.org] On Behalf Of Jonas
> Maebe
> Sent: Wednesday, September 2, 2009 2:01 AM
> To: FPC-Pascal users discussions
> Subject: Re: [fpc-pascal] #26 as EOF marker?
>
>
> On 02 Sep 2009, at 10:44, leledumbo wrote:
>
>> Does FPC use #26 as EOF marker?
>
> Only on platforms that traditionally use #26 as EOF marker. Afaik,
> these are Dos, Windows and OS/2.
>
>> I use a loop that calls Read until it meets
>> EOF, and right before the loop ends, #26 is met. This happens at
>> least on
>> Windows (other platforms untested).
>
> There is a global variable in the system unit called CtrlZMarksEOF
> that you can set to false if you want to disable this behaviour.
>
>
> Jonas
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>





More information about the fpc-pascal mailing list