Adriaan van Os wrote:
Whether it is "fragile" or not, is not the issue, Peter, Gale and I have to change the interfaces with each version of GPC anyway. The question each time is - can it be done at all ?
You might want to consider writing wrapper routines (that accept string values and pass references).
When I look out of the window, I see a long row of programmers, all volunteering to write wrappers for 268 units with 245991 lines of declarations.
I am somewhat suprised that you do that by hand. I have met similar problems several times and the anwser was always the same: write a program which will generate the code you need. Sure, I had much smaller problems (tens to thoused routnes), but IMHO larger scale only increases advantage of automatic method.
You need machine readable _logical_ description of your interface and a set of rules that map logical description to Pascal code. AFAICS the complexity is basicaly in how many different rules you need and what condition you use to trigger rules.
By the way: I belive that also for other interfaces (W32 API, Open GL, etc) we should have a "database" and a generator program.