I wish to port 250,000 lines of DEC Pascal code running on COMPAQ Alpha under OpenVMS/X-Windows to under Linux/X-Windows on Intel (and on Alpha if possible). I know that I will have some considerable problems with the non standard parts of DEC Pascal but GNU Pascal seems to be getting better all the time. The question I have is can I keep the same user interface, i.e. direct X-Windows and MOTIF calls from the Pascal code, i.e. is there an X-Windows/MOTIF binding for GNU Pascal. If the answer to this is yes please tell me. If it is not please tell me how GNU Pascal programmers develop GUI's.
Brooker, Steve wrote:
[...] The question I have is can I keep the same user interface, i.e. direct X-Windows and MOTIF calls from the Pascal code, i.e. is there an X-Windows/MOTIF binding for GNU Pascal. [...]
You can call C functions (like the X11 and Motif library functions) just by writing Pascal declarations for them. For examples, see the GPC FAQ list:
http://home.pages.de/~GNU-Pascal/gpc-faq.html
There is no ready-to-use unit for X11 or Motif yet (we are planning to introduce a mechanism to use C headers from Pascal somewhere in the future), but the task to write all needed declarations is straightforward and should not be too hard for a given program (in contrast to the general task to translate it manually).
Hope this helps,
Peter