Lest I reinvent the wheel, I'd better ask here first:)
Has anyone worked on a Gnu Pascal interface module to Berkeley DB?
I've finished a near ready Free Pascal translation I had lying around. (conversion is easy, the headers are hardly 100,150 lines: I don't know how similar the header conversions are between GPC and FPC. (afaik GPC can use C headers directly?)
www.stack.nl/~marcov/bdb.zip
While converting there were two things I wasn't 100% sure off:
- "const" before a parameter in C. I assumed it only signals that the parameter is not changed in the function, not a reference like Pascal. - One function returns a (64-bit) structure. I hope that doesn't create problems. Never interfaces to C with such function.
I also don't have an app to test with atm, so it is untested.