This is a set of file that will allow you to use the X-Windows
(version 11, revision 6, also known as X11R6) library calls
directly with the Modula-2 programming language.
It includes the full Modula-2 foreign definition modules for the
most important headers of X-Windows: Xlib.h, X.h, Xutil.h and keysyms.h.
Click here to download XModula.tar.zip. (Use gunzip to decompress)
There is NO WARRENTY these definitions will work and are bug-free. They have
only be tested superficially. I cannot be held responsible for any
problems related to their usage.
Please consider this set to be a pre--beta version.
The version given there will successfully compile with the Modula-2 compiler Mocka and the Modula-2 to C translator mtc; a small demo program is included. No other compiler have been tested, and some modifications may be necessary for some of them.
The definitions are complete: everything from the Xlib.h, X.h and Xutil.h has been translated into Modula-2 (including the original comments). The inline macros from Xlib and Xutil are implemented using normal Modula-2 procedures in a separate module called Xmacro.