I wonder if there's a list someplace???
This is the big question. I'm not aware of any such list, but maybe there is one. With this info, I can easily write a small script to insert the necessary lines into the #include files.
Pelle
Fear Not!
I'm half way there!
1) I took your sysdefs.tag file and parsed it down to a csv list of functions in each header. As : <function>,<header>
2) I used polib to list all the stuff in the libraries, giving me a list of functions in each library. (300 + files worth... Thank goodness for batch files!)
3) Next I just have to tap up a little code to transform the library list files into a csv list of functions by library. As : <function>,<library>
4) Then all I have to do is tap up one last bit of code to sort and correlate the function names producing a list of libraries by header. Take out the duplicate lines and the final output would be a text file consiting of:
<header name>,<library name>
<header name>,<library name>
<header name>,<library name>
It shouldn't take long... From there it would be a matter of sequentially opening each header, locating the header's #define _HEADER_H line and tucking in the required number of #pragma blocks, as in my earlier message.
(There will be multiple lines for some headers, if they call in more than one library, so your script will have to account for that. It's also possible some headers won't be referenced at all, if they don't match up to a library.)
Will this do as a source list for your script?