Re: [fpc-pascal] Large file support

2017-06-02 Thread Mattias Gaertner
On Sat, 3 Jun 2017 01:02:35 +0200 (CEST) mar...@stack.nl (Marco van de Voort) wrote: > In our previous episode, Mattias Gaertner said: > > mar...@stack.nl (Marco van de Voort) wrote: > > > > >[...] > > > {$if not defined(fs32bit)} > > > off_t= cint64; { used for file sizes

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-02 Thread Stefan V. Pantazi
I literally just sent a reply with the solution. I had to guess the width and height were longints. Your message confirmed it. I attached an updated version of the test program, the old one had a few typos. Thank you for your work on the ptcpas, I found it very useful for my projects. On

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-02 Thread Nikolay Nikolov
On 05/31/2017 02:51 PM, James Richters wrote: I was doing some tests with Putpixel and that seems to be a word in the format of RGBA with 4 bits each.I would think putimage would use the same format, but I haven't tested that yet. I'm still a bit confused by putimage, since it only has

Re: [fpc-pascal] Large file support

2017-06-02 Thread Marco van de Voort
In our previous episode, Mattias Gaertner said: > mar...@stack.nl (Marco van de Voort) wrote: > > >[...] > > {$if not defined(fs32bit)} > > off_t= cint64; { used for file sizes } > > {$else} > > off_t= cint; > > {$endif} > >[...] > > Maybe we could clean it out.

Re: [fpc-pascal] Large file support

2017-06-02 Thread Mattias Gaertner
On Fri, 2 Jun 2017 12:50:57 +0200 (CEST) mar...@stack.nl (Marco van de Voort) wrote: >[...] > {$if not defined(fs32bit)} > off_t= cint64; { used for file sizes } > {$else} > off_t= cint; > {$endif} >[...] > Maybe we could clean it out. Why the documentation tool

Re: [fpc-pascal] Implementing AggPas with PtcGraph

2017-06-02 Thread James Richters
Thanks for the help. I was able to make a little progress. >There is another agg unit agg_pixfmt_rgb_packed that seem to have the >565 format that you need. Add it to the uses list and try to replace the >pixfmt_rgba32 calls with pixfmt_rgb565. That will make agg use that format. >The

Re: [fpc-pascal] Large file support

2017-06-02 Thread Mark Morgan Lloyd
On 02/06/17 11:00, Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said:> > 8 apparently, but off_t is documented as a cint32.> > https://www.freepascal.org/docs-html/current/rtl/unixtype/off_t.html The declaration is {$if not defined(fs32bit)}off_t= cint64;

Re: [fpc-pascal] Large file support

2017-06-02 Thread Marco van de Voort
In our previous episode, Marco van de Voort said: > > FPC_USE_LIBC for linux and *bsd still is still hardly used afaik. > > Maybe we could clean it out. These sentences came close together while composing the message, so to be clear: I didn't mean cleaning out FPC_USE_LIBC, only the fs32bit

Re: [fpc-pascal] Large file support

2017-06-02 Thread Marco van de Voort
In our previous episode, Mark Morgan Lloyd said: > > 8 apparently, but off_t is documented as a cint32. > > https://www.freepascal.org/docs-html/current/rtl/unixtype/off_t.html The declaration is {$if not defined(fs32bit)} off_t= cint64; { used for file sizes }

Re: [fpc-pascal] Large file support

2017-06-02 Thread Mark Morgan Lloyd
On 02/06/17 10:00, Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said:> Could I have a reality check please: is there no fpLSeek64() for files > larger than 2Gb? Afaik, there is no such posix calls. In the past, most linux temporarily hadsome -64 calls while it left the

Re: [fpc-pascal] Large file support

2017-06-02 Thread Marco van de Voort
In our previous episode, Mark Morgan Lloyd said: > Could I have a reality check please: is there no fpLSeek64() for files > larger than 2Gb? Afaik, there is no such posix calls. In the past, most linux temporarily had some -64 calls while it left the main calls 32-bit to make transition

[fpc-pascal] Large file support

2017-06-02 Thread Mark Morgan Lloyd
Could I have a reality check please: is there no fpLSeek64() for files larger than 2Gb? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] ___ fpc-pascal maillist -