Yet another effort at translating the Win32 API headers
Don Clugston
dac at nospam.com.au
Wed May 10 03:16:57 PDT 2006
DBloke wrote:
>
>> A great help would be a tool that parsed a D file and extracted the
>> names of all of the functions. With that, we could make a file that just
>> consisted of
>>
>> void main()
>> {
>> auto f1 = &CreateWindowA;
>> auto f2 = &MessageBoxA;
>> auto f3 = &CreateDialogParamA;
>> :
>> :
>> }
>>
> So you just want a utility that takes a D file as input scans it and
> dumps out a text file with all functions in that file?
>
> E.G.
>
> File ABC.d contains
>
> void FuncA(int a);
> int FuncX ();
> real FuncZ(int a, int b);
>
> Output File ABC.txt
> FuncA
> FuncX
> FuncZ
That's exactly right.
>
> If you give me some more info, I will give it a go, and maybe create a
> file that calls these functions too as well as just text files, but I
> need more specifics
Ultimately we want to create testABC.txt, which is:
import ABC;
void main()
{
auto f1 = &ABC.FuncA;
auto f2 = &ABC.FuncX;
auto f3 = &ABC.FuncZ;
}
If this links, we know the definitions are correct.
-Don.
More information about the Digitalmars-d-announce
mailing list