On 10 May 2003 at 14:27, Frank Heckenbach wrote:
[...]
This code is taken from the Sysutils unit, which exports some functions that already exist in the GPC unit. In older times, you just asmnamed them. In the penultimate snapshot, that was changed to the above. Now, it doesn't work. I need this to work (or at least I need to have a way to reexport routines from other units). This is reminiscent of the earlier discussions on unit propagation. I am not sure how that discussion was resolved.
There's no "reexport all" feature, but reexporing selected items works as shown above. (I think that's what you need, you don't want to reexport the whole GPC unit.)
Ok, thanks. I guess I'll just have to do the module+selective re- exporting stuff.
Unfortunately, this problem is not only related to unit propagation. I have just tried to compile the Windows unit (that exports thousands of winapi routines, interfacing to the Mingw winapi libraries), and two of those routines are now rejected with the "attributes in forward declared routines are not allowed" error. There is no reason for those two routines to be singled out, and there is no USES problem here.
Probably these routines are declared `forward' or something like it. Generally, it applies when a routine is declared twice.
No, they are not declared "forward" - and they are not declared twice (I have done searches and greps just to verify that). I have since discovered however that it's not just those two (what happened was that the compiler stopped on the second error reported, instead of listing all the affected routines).
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/