From: Alexandru D. <al...@ci...> - 2010-05-31 09:47:06
|
Here is a small step in this direction. This is a script which parses object.h (and also mass.h) and then searches each ODE_API function in PyODE source code. It reports: - NOT IMPLEMENTED: functions declared in declarations.pyx, but not implemented anywhere - IMPLEMENTED, BUT NOT DECLARED: functions found in some source file *.pyx, but not in declarations.pyx - NOT FOUND: functions which are not found at all in PyODE sources - and for each found function, the file into which was implemented (e.g. joints.pyx). The script also extracts the doc for each function from ODE headers, but it does nothing with it yet. There is a commented #print doc somewhere in the source :) Improvements to this script are welcome. Alex > Hey, just a note, in case anyone was wondering: the auto.py script Alex > contributed a while ago didn't generate C declarations (of the kind in > declarations.pyx) for the functions being added. I think it would be > really neat to write a script that opens /usr/include/ode/objects.h and > converts all the ODE_API functions into pyrex C declarations, but I > don't have the time. > > Ethan |