On 21/08/14 07:41, Jerry wrote:
I have a lot of old Pascal that I am getting interested in reviving. It was
originally written in Lightspeed/THINK Pascal (did I mention it is old?) and
around 2000-2002 I converted it to Codewarrior Pascal. These are both Macintosh
dialects.
What are the prospects of running each of these dialects under FPC? Are there
compatibility flags to set? Would there be much rewriting?
The compatibility flag to set is the compiler directive {$mode macpas}
(at the top of the file), or the command line switch -Mmacpas. I don't
know how much there would be to rewrite, but in general that switch
should make the accepted syntax at least quite compatible to CodeWarrior's.
One of the things that I recall being possibly unique and possibly troublesome
now is that under THINK Pascal, there was a built-in text I/O window and a
built-in graphics drawing window, both of which I used. In the latter case, it
was mainly MoveTo(x, y) and LineTo(x, y) stuff. When I moved to Codewarrior, I
was somehow able to emulate that both text and drawing windows. I suppose the
text window became a normal terminal (whatever Codewarrior offered). I can't
remember if Codewarrior offered a drawing window or if I had to make a crude
one using a (now) Carbon window.
Maybe you could rewrite your code on top of TransSkel:
http://ragnemalm.se/lightweight/ (click on it in the navigation bar on
the left).
Jonas
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal