ImportC can now automatically run the preprocessor

max haughton maxhaton at gmail.com
Mon May 16 05:17:36 UTC 2022


On Monday, 16 May 2022 at 05:13:52 UTC, max haughton wrote:
> On Monday, 16 May 2022 at 05:11:42 UTC, Walter Bright wrote:
>> On 5/15/2022 8:59 PM, max haughton wrote:
>>> [...]
>>
>> "almost" is the operative word, here :-/
>>
>> One of the motivations for ImportC (as opposed to C=>D 
>> translations that htod, dstep, and dpp do) is that the 
>> semantics can be an exact match to C.
>
> The semantics will be an exact match because I'm talking about 
> merely making the dmd AST dumping feature better versus a new 
> tool. It basically already works it's just that you have to 
> make it not emit `import object` and also fix a bug in the dmd 
> parser because extern(C) doesn't work inside a function 
> parameter or something to that effect.

Further note that I don't really care about the bodies of 
functions, so 99% of the usefulness is 30% of the problem.


More information about the Digitalmars-d mailing list