tir, 2003-03-18 kl. 08:39 skrev Jon Griffiths:
Hi,
--- Ove Kaaven ovek@arcticnet.no wrote:
A new parameter to write_type/write_typedef which inhibits writing anything to the header but still sets "written", for example... would that work?
Err, probably, but I'm not convinced its a better solution without going back through the code again (I made those changes over a month ago).
I think it is. Consider:
file1.idl: typedef struct tagSTRCT { int a; } STRCT;
file2.idl: import "file1.idl" typedef struct tagSTRCT *LPSTRCT;
Without my solution, we'd get
file2.h: #include "file1.h" typedef struct tagSTRCT { int a; } *LPSTRCT;
which would be a struct redefinition.
I'll resubmit the other two fixes and look at it again when my current batch of oleaut32 things are wrapped up. I only came accross this bug trying to add IRecordInfo for the SafeArray/Variant functions I wanted to implement, so I've wandered quite far from my original path already...
OK.