>If it does, then I'll write a script to generate wrappers and
publish >the full API in a .so
When you have the headers available, a script that could parse out
the prototypes and generate a spec & src file would be a godsend. I
had in mind something that would parse the output of an export
listing program and grep out the declarations from a header
directory, but so far all my experiment does is generate some rubbish
stub code and include the grep output as a comment (perl novice!) :)
My reasoning was to create a 'forwarding dll' which would TRACE the
arguments passed in and back (easy to script *if* you can parse the
declaration), then implement the calls one at a time (knowing the
parameters and their contents would really help). This would be
useful to reimpliment a dll as well, of course. For now i have to
settle with a handwritten test program that loads either the dll or
my .so, calls functions and then diffing the output. Its taking a
long time to test :-(
If you dont have the headers though, I cant see how you'd script it.
Jon
=====
"May their negative actions ripen upon me. And may all my virtues ripen upon
them."-Nagarjuna, on Compassion
"If it could be talked about, everybody would have told their brother."-Chuang Tzu, on
Tao
[EMAIL PROTECTED] , [EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/