Re: [fpc-pascal] cross compiling enigma

2007-12-08 Thread Sam Liddicott
Sam Liddicott wrote: > Sam Liddicott wrote: >> * Marco van de Voort wrote, On 07/12/07 08:20: I'm modifying the lazarus packaging scripts to make building debs of lazarus, fpc and cross-fpc variants simpler than it is. (Cross is not simple right now) I've read the buildfa

Re: [fpc-pascal] EOF on stdin

2007-12-08 Thread Mark Morgan Lloyd
Marco van de Voort wrote: For unix one can simply use termio.isatty(input) I think. I can confirm that that works. Another implementation difference that I noticed between Win-32 and Linux was that FileExists() on Win-32 excludes directories while on Linux it matches them. Workaround was t

Re: [fpc-pascal] EOF on stdin

2007-12-08 Thread Mark Morgan Lloyd
Good grief- that was quick :-) Marco van de Voort wrote: I'm trying to distinguish between a case where there is no parameter on the command line and where there is piped input. The code below works under Win-32 but under Linux Eof() waits for input: If I start it under linux by piping an eo

Re: [fpc-pascal] EOF on stdin

2007-12-08 Thread Marco van de Voort
> I'm trying to distinguish between a case where there is no parameter on the > command line and where there is piped input. The code below works under > Win-32 > but under Linux Eof() waits for input: > >IF ParamCount = 0 THEN BEGIN (* Case (1) or (2) *) > debug('No para

[fpc-pascal] EOF on stdin

2007-12-08 Thread Mark Morgan Lloyd
I'm trying to distinguish between a case where there is no parameter on the command line and where there is piped input. The code below works under Win-32 but under Linux Eof() waits for input: IF ParamCount = 0 THEN BEGIN (* Case (1) or (2) *) debug('No parameters (case 1 or 2)'

Re: [fpc-pascal] cross compiling enigma

2007-12-08 Thread Sam Liddicott
* Marco van de Voort wrote, On 07/12/07 08:20: >> I'm modifying the lazarus packaging scripts to make building debs of >> lazarus, fpc and cross-fpc variants simpler than it is. (Cross is not >> simple right now) >> >> I've read the buildfaq (thanks Marco) and various fpc build scripts but >> am