I tried posting this to the Mac Pascal (Pascal Central) list but for
some reason it is not making it.
===============================
I might be confused about how to import math functions in GPC.
GPC itself doesn't seem to have the functions that I need (I'm
looking in gpc.pas), but in the docs there is a mention of math.pas.
However, I can't find such a file in my GPC installation.
Do I need to use (non-portable) Mac math libraries? If so, is fp.p
still the preferred interface? In the case of more common functions
such as trig stuff, does fp.p override the Pascal built-ins? Or
conflict with them? I believe that pow() is a problem with respect to
conflicts and I see that some headers seem to note this in a compiler
directive.
Also, I see that floating point types Double and Real are the same
and eight bytes, while Extended and LongReal are 16 bytes--is that
correct? To make old code work that assumed that Extended is eight
bytes, can I write type Extended = Real without my computer exploding?
FWIW, I'm porting my own set of tools which needs the math functions
and which was originally made on THINK Pascal, then ported to
Metrowerks, and now to GPC.
Thanks for any help.
Jerry