January 26, 2012
On Thu, 26 Jan 2012 07:19:27 -0800
bls <bizprac@orange.fr> wrote:

> Sorry for my ignorance but why should one use DStep instead of htod in order to port plain vanilla C headers ? I have to admit that I haven't tried DStep yet.

Excuse me for my ignorance about DStep, but htod is Windows-only.


Sincerely,
Gour


-- 
A person who has given up all desires for sense gratification, who lives free from desires, who has given up all sense of proprietorship and is devoid of false ego — he alone can attain real peace.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


January 26, 2012
>> Sorry for my ignorance but why should one use DStep instead of htod in order to port plain vanilla C headers ? I have to admit that I haven't tried DStep yet.
>
> htod is Windows-only.

And it sucks.
For example it drops const, runs the preprocessor instead of turning preprocessor directives into proper D equivalents, horribly messes up the comments (esp. comments for enum members),...
January 26, 2012
On 01/26/2012 07:51 AM, Trass3r wrote:
>>> Sorry for my ignorance but why should one use DStep instead of htod
>>> in order to port plain vanilla C headers ? I have to admit that I
>>> haven't tried DStep yet.
>>
>> htod is Windows-only.
>
> And it sucks.
> For example it drops const, runs the preprocessor instead of turning
> preprocessor directives into proper D equivalents, horribly messes up
> the comments (esp. comments for enum members),...

Ok,Thanks for clarification! Seems that DStep is a missing link in the D tool-chain and should be part of the DMD package
I'll try DStep ASAP on libxml2 and libxslt. Will let you know how it works for me.
Thanks, Bjoern
January 26, 2012
> Ok,Thanks for clarification! Seems that DStep is a missing link in the D tool-chain and should be part of the DMD package
> I'll try DStep ASAP on libxml2 and libxslt. Will let you know how it works for me.

I don't think it's in a usable state yet.
I guess SWIG could be useful currently.
January 26, 2012
On 2012-01-26 17:18, Trass3r wrote:
>> Ok,Thanks for clarification! Seems that DStep is a missing link in the
>> D tool-chain and should be part of the DMD package
>> I'll try DStep ASAP on libxml2 and libxslt. Will let you know how it
>> works for me.
>
> I don't think it's in a usable state yet.
> I guess SWIG could be useful currently.

No, it's not in very usable state currently. The Clang modifications are somewhat usable: https://github.com/jacob-carlborg/clang

-- 
/Jacob Carlborg
January 26, 2012
On 2012-01-26 16:41, Gour wrote:
> On Thu, 26 Jan 2012 07:19:27 -0800
> bls<bizprac@orange.fr>  wrote:
>
>> Sorry for my ignorance but why should one use DStep instead of htod
>> in order to port plain vanilla C headers ? I have to admit that I
>> haven't tried DStep yet.
>
> Excuse me for my ignorance about DStep, but htod is Windows-only.

Exactly, dstep could work on any platform supported by Clang and D.

-- 
/Jacob Carlborg
January 26, 2012
On 2012-01-26 17:08, bls wrote:
> On 01/26/2012 07:51 AM, Trass3r wrote:
>>>> Sorry for my ignorance but why should one use DStep instead of htod
>>>> in order to port plain vanilla C headers ? I have to admit that I
>>>> haven't tried DStep yet.
>>>
>>> htod is Windows-only.
>>
>> And it sucks.
>> For example it drops const, runs the preprocessor instead of turning
>> preprocessor directives into proper D equivalents, horribly messes up
>> the comments (esp. comments for enum members),...
>
> Ok,Thanks for clarification! Seems that DStep is a missing link in the D
> tool-chain and should be part of the DMD package
> I'll try DStep ASAP on libxml2 and libxslt. Will let you know how it
> works for me.
> Thanks, Bjoern

DStep has nothing to do with XML. It uses the Clang C API to create D bindings.

-- 
/Jacob Carlborg
January 26, 2012
On 01/26/2012 09:51 AM, Jacob Carlborg wrote:
> On 2012-01-26 17:08, bls wrote:
>> On 01/26/2012 07:51 AM, Trass3r wrote:
>>>>> Sorry for my ignorance but why should one use DStep instead of htod
>>>>> in order to port plain vanilla C headers ? I have to admit that I
>>>>> haven't tried DStep yet.
>>>>
>>>> htod is Windows-only.
>>>
>>> And it sucks.
>>> For example it drops const, runs the preprocessor instead of turning
>>> preprocessor directives into proper D equivalents, horribly messes up
>>> the comments (esp. comments for enum members),...
>>
>> Ok,Thanks for clarification! Seems that DStep is a missing link in the D
>> tool-chain and should be part of the DMD package
>> I'll try DStep ASAP on libxml2 and libxslt. Will let you know how it
>> works for me.
>> Thanks, Bjoern
>
> DStep has nothing to do with XML. It uses the Clang C API to create D
> bindings.
>

libxml2 is a plain c library
http://xmlsoft.org/

libxslt dito.
http://xmlsoft.org/XSLT/

?? May you mix it up. In order to create *bindings* to C++ libs doxygens xml output seems to be perfect.

To _port_ C headers DStep is probaly the right tool. But I just see that I have to build llvm and what the heck.. :(

Now, in order to parse doxygens xml output std.xml is not good enough. In other words it would be nice to have libxml2 as D lib available.


January 26, 2012
On Thursday, 26 January 2012 at 15:13:57 UTC, bls wrote:

> Andrej,
> I can't await your SUCCESS message. For me your upcoming code is the most important stuff since years.
> A few questions : where do I find Vladimir Panteelev's XML library ? Does this library support XPATH ?

I don't know anything about Vladimir's parser, I've just been using xmlp, which has xpath though I have have not used. Xmlp has gone through some breaking changes recently as I've been submitting bugs.

http://www.dsource.org/projects/xmlp/browser/trunk/std
January 26, 2012
On Thursday, January 26, 2012 19:44:18 Jesse Phillips wrote:
> On Thursday, 26 January 2012 at 15:13:57 UTC, bls wrote:
> > Andrej,
> > I can't await your SUCCESS message. For me your upcoming code
> > is the most important stuff since years.
> > A few questions : where do I find Vladimir Panteelev's XML
> > library ? Does this library support XPATH ?
> 
> I don't know anything about Vladimir's parser, I've just been using xmlp, which has xpath though I have have not used. Xmlp has gone through some breaking changes recently as I've been submitting bugs.
> 
> http://www.dsource.org/projects/xmlp/browser/trunk/std

xmlp is the one that Tomaz is working on to replace std.xml, correct? Any idea how close it is to actually being submitted for review?

- Jonathan M Davis