Re: [fpc-pascal] FCL: moving FastHTMLParser

2016-05-04 Thread leledumbo
> Isn't it in fpc.cfg? > -Fu/usr/local/bin/x.x.x/units/$fpctarget/* Must be. There's no magic in FPC, except there seems to be a hardcoded -Fu.. in the compiler. Try to execute `fpc -n -vt bogus` and you'll see the predefined paths. -- View this message in context: http://free-pascal-general.1

Re: [fpc-pascal] intel vs att asm (fstp instruction) (osx/clang features)

2016-05-04 Thread Dmitry Boyarintsev
On Wed, May 4, 2016 at 6:14 AM, Pierre Free Pascal wrote: > I think the correct solution for you is to use explicit size information: > > > > FSTP SINGLE PTR [EDX] > > FSTP SINGLE PTR [EAX] > Indeed that worked as expected. Thank you. > but > > FSTP [s] > > and > > FSTP [c] > It still r

Re: [fpc-pascal] intel vs att asm (fstp instruction) (osx/clang features)

2016-05-04 Thread Ched
Hello, I have something like this which seems to work very nicely Cheers, Ched' PROCEDURE SINCOS(CONST X: DOUBLE; VAR S, C: DOUBLE); BEGIN {$IFDEF NOASM} S:=SIN(X); C:=COS(X); {$ELSE} {$IFDEF VER70} IF TEST8087=3 THEN ASM FLD X

Re: [fpc-pascal] getopts unit vs CustApp parameter handling

2016-05-04 Thread Graeme Geldenhuys
On 2016-05-04 10:24, Michael Van Canneyt wrote: > It would be, but you had better update your interface, various things > have been added. I assume you mean FPC 2.6.4 (what I used) verses FPC 3.x. Thanks for the tip, I’ll take a look tonight and update the code appropriately. Regards, Graeme _

Re: [fpc-pascal] FCL: moving FastHTMLParser

2016-05-04 Thread Dmitry Boyarintsev
On Wed, May 4, 2016 at 10:36 AM, Graeme Geldenhuys < mailingli...@geldenhuys.co.uk> wrote: > FPC manages to find in somehow (not sure how yet - FPC magic ). > Isn't it in fpc.cfg? -Fu/usr/local/bin/x.x.x/units/$fpctarget/* That's forcing FPC to look through all compiled packages. Since fasthtm

Re: [fpc-pascal] FCL: moving FastHTMLParser

2016-05-04 Thread Graeme Geldenhuys
On 2016-05-04 15:10, Graeme Geldenhuys wrote: > So for now I made a copy of that unit, but that definitely doesn’t seem > like the best way of doing things. Is there a better why of handling this? Umm, in hind sight, simply adding the “fasthtmlparser” to the uses clause in my code seems to work. I

[fpc-pascal] FCL: moving FastHTMLParser

2016-05-04 Thread Graeme Geldenhuys
Hi, Is there any chance of moving “packages/chm/src/fasthtmlparser.pas” to a more publicly accessible location inside the FCL? eg: fcl-base? That way other FCL packages could use that code as well (I think)? I’m working on new code which will eventually live in the FCL. The code needs a simple HT

Re: [fpc-pascal] intel vs att asm (fstp instruction) (osx/clang features)

2016-05-04 Thread Pierre Free Pascal
I think the correct solution for you is to use explicit size information: FSTP SINGLE PTR [EDX] FSTP SINGLE PTR [EAX] but FSTP [s] and FSTP [c] would be even better, I don’t know if this syntax is Delphi compatible or not. It seems that indeed Free Pascal does not set th

Re: [fpc-pascal] getopts unit vs CustApp parameter handling

2016-05-04 Thread Michael Van Canneyt
On Wed, 4 May 2016, Graeme Geldenhuys wrote: On 2016-05-03 11:02, Michael Van Canneyt wrote: They serve the same purpose, but function differently. Simply use the one whose interface you like best. I'm used to the command line parameters handling of CustApp, but none of my applications are

Re: [fpc-pascal] getopts unit vs CustApp parameter handling

2016-05-04 Thread Graeme Geldenhuys
On 2016-05-03 11:02, Michael Van Canneyt wrote: > They serve the same purpose, but function differently. > > Simply use the one whose interface you like best. I'm used to the command line parameters handling of CustApp, but none of my applications are TCustomApp based. Plus CustApp gives no code