August 13, 2011
>>> I'm working on a tool to convert C header files to D modules based on
>>> clang. But currently it's not a prioritized project.
>>
>> I also played with the idea. Clang's Rewrite facilities should be
>> perfect for that.
>
> Yeah, I'm using Rewrite, if I recall correctly.

Should really be a community effort :)
August 13, 2011
On 2011-08-13 02:59, maarten van damme wrote:
> Are you really working on a better htod?

Yes, I guess so.

> will it try to convert ifdefs in version()?

I don't know yet. I'm avoiding the preprocessor for as long as I can.

> 2011/8/12 Jacob Carlborg <doob@me.com <mailto:doob@me.com>>
>
>     On 2011-08-12 13:48, Trass3r wrote:
>
>         Am 12.08.2011, 13:35 Uhr, schrieb Jacob Carlborg <doob@me.com
>         <mailto:doob@me.com>>:
>
>             On 2011-08-12 11:36, simendsjo wrote:
>
>                 htod is a fork of dmc or something, right? How difficult
>                 is it to update
>                 the program to make it more user friendly?
>                 Is the source public? Would it be better to use gcc or
>                 clang instead?
>                 htod is a great thought, but I haven't either gotten it
>                 to work for
>                 anything but the simplest cases.
>
>
>             I'm working on a tool to convert C header files to D modules
>             based on
>             clang. But currently it's not a prioritized project.
>
>
>         I also played with the idea. Clang's Rewrite facilities should be
>         perfect for that.
>
>
>     Yeah, I'm using Rewrite, if I recall correctly.
>
>     --
>     /Jacob Carlborg
>
>


-- 
/Jacob Carlborg
August 13, 2011
On 2011-08-13 04:13, Trass3r wrote:
>>>> I'm working on a tool to convert C header files to D modules based on
>>>> clang. But currently it's not a prioritized project.
>>>
>>> I also played with the idea. Clang's Rewrite facilities should be
>>> perfect for that.
>>
>> Yeah, I'm using Rewrite, if I recall correctly.
>
> Should really be a community effort :)

I guess so. It started out as a better implementation of my DStep project. To convert Objective-C headers to D modules. But since Objective-C is C as well it needs to handle all C as well.

I guess I can put it on github. But currently it's patches for clang, just so I could get a quick start.

-- 
/Jacob Carlborg
August 15, 2011
Thank you very much, that solved my issue.

>>
>> C:\dir>htod -I c:\d\dm\include ocilib.h
>> Fatal error: unable to open input file 'stdlib.h'
>
> You have an extra space there. Use:
>
> htod -IC:\d\dm\include ocilib.h
>
> That will work.

August 15, 2011
On 2011-08-13 04:13, Trass3r wrote:
>>>> I'm working on a tool to convert C header files to D modules based on
>>>> clang. But currently it's not a prioritized project.
>>>
>>> I also played with the idea. Clang's Rewrite facilities should be
>>> perfect for that.
>>
>> Yeah, I'm using Rewrite, if I recall correctly.
>
> Should really be a community effort :)

If someone is interested I've add my clang fork to github: https://github.com/jacob-carlborg/clang

-- 
/Jacob Carlborg
1 2
Next ›   Last »