[dmd-internals] Explicitly setting the linkage of a function pointer

Jacob Carlborg doob at me.com
Sat May 4 08:05:19 PDT 2013


I'm playing around in the DMD source code. I'm wondering how I could set a specific linkage for all function pointers. I'm currently looking in the Parser::parseBasicType2 function at:

https://github.com/D-Programming-Language/dmd/blob/master/src/parse.c#L2667

I can set the linkage when TypeFunction is created. But the problem is when the semantic phase is run the linkage will be overridden with the value from the scope here:

https://github.com/D-Programming-Language/dmd/blob/master/src/mtype.c#L5467

-- 
/Jacob Carlborg



More information about the dmd-internals mailing list