Re: [q-lang-users] [qlist] SDL anyone?
Brought to you by:
agraef
From: Andrew B. <and...@ya...> - 2006-12-28 06:48:38
|
On 27 Dec 2006, at 08:39, Albert Graef wrote: > I really have to write an introduction to Q-SWIG sometime, but I hope > that with the SWIG docs and the Q examples you'll be able to find your > way. ;-) Of course you could also use Q's "raw" C interface, which is > documented fairly well in the manual, but SWIG is really the only > practical option for wrapping bigger libs. I just got the example from the SWIG website's tutorial to work with q. Took about a half hour, most of which was spent fooling around building SWIG itself. (One of the tests failed, and being the sucker that I am I got sucked into trying to figure out why.) I don't know what the copyright is on their tutorial (http:// www.swig.org/tutorial.html) but just copying that and replacing all their 'Building a XXX Module' sections with a single 'Building a q module' would fit reasonably well in qdoc. At least it would not take a lot of time to write. ;^) Well, my kids'll be up in about 7 hours, so it's bedtime for me. Tomorrow I'll try to rewrite SDL's 'testver' into q, adding SDL definitions as I go... Ta, ta! -andrew |