Proof of concept: automatically import C header files

Timothee Cour thelastmammoth at gmail.com
Tue Jul 16 22:11:47 PDT 2013


On Tue, Jul 16, 2013 at 10:04 PM, deadalnix <deadalnix at gmail.com> wrote:

> On Wednesday, 17 July 2013 at 04:14:56 UTC, Walter Bright wrote:
>
>> On 7/16/2013 8:49 PM, Timothee Cour wrote:
>>
>>> So how about a library solution instead, which doesn't require compiler
>>> change:
>>>
>>
>> While semantically a great idea, technically I don't think CTFE is up to
>> implementing a C front end yet.
>>
>
> This is the right path. We don't need the full front end, do we ?
>

what's a non-full C front end? If it's not a real C front end it's gonna
break with certain macros etc. Not good.

I see no point in re-implementing a C front end when we can simply use an
existing one to do the job (eg clang). This would also allow to parse C++
just as well.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130716/1e59e3a9/attachment.html>


More information about the Digitalmars-d mailing list