[M3devel] Shorthand type declarations?
Chris
Highjinks at gmx.com
Wed Feb 3 22:10:58 CET 2010
On Wed, 3 Feb 2010 11:51:32 +0000
Jay K <jay.krell at cornell.edu> wrote:
>
> Chris many of the X headers these days are generated from XML using Python.
>
> Seriously -- you need Python to build X these days.
>
> You should look into adding a little to that system for Modula-3.
>
> Cloning headers is tedious, therefore error-prone, therefore a recipe for bugs.
>
> Please try to avoid it.
> If you really can't go the XML route, there is also a fork of gcc
>
> that is supposed to be adequate for header parsing, and spits out XML.
>
> Look for "gccxml" or such. Maybe it is old/dead now?
I've never really done much in the way of autogenerating Interfaces and such. Perhaps now is the time for me to look into it.
>
>
> There is also swig, which is a partial C compiler.
>
> Not a great idea to attempt.
>
> But it is there, you might try it.
>
>
>
> I'd be far more interested in wrapping Qt than X though...
Oh, dont worry, QT will get a binding, as will GTK. If not by me, then someone else will do it. The reason I'm doing this interface to XCB is because that is the way X is moving. Future applications will depend less and less on XLib and more on XCB.
Also, I dont use QT, or GTK.
There are a bunch of bindings that SHOULD be written. OpenMotif, SDL, wxWindows, etc...
I'm starting out with XCB, Cairo/Pango, XKB for X. The OpenGL binding will be updated next, along with it's GLX and GLUT bindings. These are the basic X Libs that lots of other X apps depend on.
Then I'll start doing QT/GTK(if someone hasnt already beaten me to it.
Nice thing with QT and GTK is that they are in fact cross platform. Therefor I wouldn't classify them as "X Windows" bindings. Just as GUI toolkits. Nice ones at that.
Whoa! I've got ALOT of work to do. Be back soon.
--
Chris <Highjinks at gmx.com>
More information about the M3devel
mailing list