I just wanted to record for posterity that bindGen.rb was a big help in
generating interfaces to C functions. And thank Thomas for his help.
A couple of things had to be "fixed". There was no entry for C types
"short" and "long" (short int and long int were there)--easily fixed
with a couple of added lines. It does not like a space between the
function name and the ( beginning the parameter list. The parameter
declarations have to be within the parameter list, not afterward.
The code I had was written during the Bronze Age, so there were no
"modern" things to worry about, like structures.
It turns out that I can't yet use the C interop features, because
having the interfaces allows the compiler to catch a bunch of funny
things that seem to "work" anyway. But the interfaces have identified
many things that need to be fixed as the modernization progresses.