Re: htod (8.52.5n) not recognizing wchar_t?

2017-09-26 Thread DanielG via Digitalmars-d-learn
Thanks!

Re: htod (8.52.5n) not recognizing wchar_t?

2017-09-26 Thread Jonathan M Davis via Digitalmars-d-learn
; file. > > Anything I need to do? I'd prefer to keep this entire file > uncommented so I don't always have to hand-edit the results of > htod. I find it quite surprising that it doesn't like wchar_t, but depending on what version of C it's converting to, maybe wchar_t isn't officially part

htod (8.52.5n) not recognizing wchar_t?

2017-09-26 Thread DanielG via Digitalmars-d-learn
lways have to hand-edit the results of htod. cheers

Re: htod for linux

2017-04-21 Thread Sebastien Alaiwan via Digitalmars-d-learn
On Friday, 21 April 2017 at 11:40:45 UTC, Mike Parker wrote: On Friday, 21 April 2017 at 10:54:26 UTC, سليمان السهمي (Soulaïman Sahmi) wrote: Is there an htod for linux or an equivalent that works with Cpp, there is dstep but it does not support Cpp. From the very bottom of the htod doc page

Re: htod for linux

2017-04-21 Thread Matthias Klumpp via Digitalmars-d-learn
You may also want to try dstep - I just recently used that tool for the first time, and it worked really well (required a bit of tweaking of the source and result files though, but nothing major). => https://github.com/jacob-carlborg/dstep

Re: htod for linux

2017-04-21 Thread via Digitalmars-d-learn
I think we need a dub package for the cpp standard library. If somebody has managed to get that together, it would be a great step towards better cpp interoperability.

Re: htod for linux

2017-04-21 Thread via Digitalmars-d-learn
On Friday, 21 April 2017 at 12:10:04 UTC, Mike Parker wrote: The only thing I'm aware of is Binderoo [1]. According to the currently skinny wiki, binderoo_util [2] can be used to generate bindings if you're invested in using the whole set up. Ethan's scheduled to give a talk about it on Day 2

Re: htod for linux

2017-04-21 Thread Mike Parker via Digitalmars-d-learn
On Friday, 21 April 2017 at 12:04:02 UTC, سليمان السهمي (Soulaïman Sahmi) wrote: On Friday, 21 April 2017 at 11:40:45 UTC, Mike Parker wrote: "No Linux version." That's a shame, any alternative with cpp support? It's quite painful to "port" something ubiquitous like std::string by hand.

Re: htod for linux

2017-04-21 Thread via Digitalmars-d-learn
On Friday, 21 April 2017 at 11:40:45 UTC, Mike Parker wrote: "No Linux version." That's a shame, any alternative with cpp support? It's quite painful to "port" something ubiquitous like std::string by hand. base_string.h is ugly, is arcane, even a parser would have a hard time with it.

Re: htod for linux

2017-04-21 Thread Mike Parker via Digitalmars-d-learn
On Friday, 21 April 2017 at 10:54:26 UTC, سليمان السهمي (Soulaïman Sahmi) wrote: Is there an htod for linux or an equivalent that works with Cpp, there is dstep but it does not support Cpp. From the very bottom of the htod doc page [1]: "No Linux version." https://dlang.org/htod.html

htod for linux

2017-04-21 Thread via Digitalmars-d-learn
Is there an htod for linux or an equivalent that works with Cpp, there is dstep but it does not support Cpp.

Re: Linux and htod

2016-06-16 Thread yawniek via Digitalmars-d-learn
On Thursday, 16 June 2016 at 19:04:38 UTC, bachmeier wrote: On Thursday, 16 June 2016 at 12:23:09 UTC, fbmac wrote: How people use it on Linux, if htod is required to import C libraries and windows only?f Just to clarify, so as to prevent confusion by someone that randomly stumbles across

Re: Linux and htod

2016-06-16 Thread bachmeier via Digitalmars-d-learn
On Thursday, 16 June 2016 at 12:23:09 UTC, fbmac wrote: How people use it on Linux, if htod is required to import C libraries and windows only?f Just to clarify, so as to prevent confusion by someone that randomly stumbles across this post, you do not need htod, dstep, or any other tool

Re: Linux and htod

2016-06-16 Thread fbmac via Digitalmars-d-learn
On Thursday, 16 June 2016 at 12:39:00 UTC, Dicebot wrote: On Thursday, 16 June 2016 at 12:23:09 UTC, fbmac wrote: How people use it on Linux, if htod is required to import C libraries and windows only?f People don't use htod. https://github.com/jacob-carlborg/dstep is best what one can

Re: Linux and htod

2016-06-16 Thread Dicebot via Digitalmars-d-learn
On Thursday, 16 June 2016 at 12:23:09 UTC, fbmac wrote: How people use it on Linux, if htod is required to import C libraries and windows only?f People don't use htod. https://github.com/jacob-carlborg/dstep is best what one can be for plain binding generation.

Re: Linux and htod

2016-06-16 Thread ketmar via Digitalmars-d-learn
On Thursday, 16 June 2016 at 12:23:09 UTC, fbmac wrote: How people use it on Linux, if htod is required to import C libraries and windows only?f we don't.

Linux and htod

2016-06-16 Thread fbmac via Digitalmars-d-learn
How people use it on Linux, if htod is required to import C libraries and windows only?f

Re: htod question

2016-01-23 Thread Sebastiaan Koppe via Digitalmars-d-learn
for existing C library so I was trying to use htod for that. The library includes various C header files ... causing htod to fail Yeah, htod often requires preparing the files your trying to convert. Often removing macro's and the like. Its a manual process, and it can get dirty.

Re: htod question

2016-01-22 Thread Jacob Carlborg via Digitalmars-d-learn
On 2016-01-22 01:31, Dibyendu Majumdar wrote: I tried using htod but got errors as it could not handle the std C header files (Visual C++). How do people work around this? You could try DStep [1]. Although I'm not entirely sure if it works on Windows. It uses libclang, so if Clang can handle

Re: htod question

2016-01-21 Thread W.J. via Digitalmars-d-learn
On Friday, 22 January 2016 at 00:31:01 UTC, Dibyendu Majumdar wrote: I tried using htod but got errors as it could not handle the std C header files (Visual C++). And probably never will. D doesn't have a preprocessor so it's kind of hard to automate the process. How do people work around

Re: htod question

2016-01-21 Thread Dibyendu Majumdar via Digitalmars-d-learn
On Friday, 22 January 2016 at 00:52:59 UTC, W.J. wrote: Counter question: What's so bad about the D std library ? I am trying to create bindings for existing C library so I was trying to use htod for that.

htod question

2016-01-21 Thread Dibyendu Majumdar via Digitalmars-d-learn
I tried using htod but got errors as it could not handle the std C header files (Visual C++). How do people work around this? Thanks and Regards Dibyendu

Re: htod question

2016-01-21 Thread Dibyendu Majumdar via Digitalmars-d-learn
On Friday, 22 January 2016 at 01:03:09 UTC, Dibyendu Majumdar wrote: On Friday, 22 January 2016 at 00:52:59 UTC, W.J. wrote: Counter question: What's so bad about the D std library ? I am trying to create bindings for existing C library so I was trying to use htod for that. The library

Re: htod question

2016-01-21 Thread W.J. via Digitalmars-d-learn
for existing C library so I was trying to use htod for that. The library includes various C header files ... causing htod to fail I see. I didn't quite understand your question correctly. I thought you were trying to port over the std c library. Maybe you can give an example ?

htod - const

2012-03-06 Thread dnewbie
I have this file tmp.h: const char *getvalue(const char *key); I run htod tmp.h and I've got the output --- /* Converted to D from tmp.h by htod */ module tmp; //C const char *getvalue(const char *key); extern (C): char * getvalue(char *key

Re: htod - const

2012-03-06 Thread Trass3r
Why is 'const' removed? cause htod sucks. D1 didn't have const and htod wasn't updated for ages.

Re: htod - const

2012-03-06 Thread maarten van damme
trass3r, I wouldn't say that it sucks. It has really helped a lot in porting some simple header files. It goes terribly bad on the more complex though.

Re: htod - const

2012-03-06 Thread dnewbie
Thanks Trass3r. On Tue, Mar 6, 2012, at 05:50 PM, Trass3r wrote: Why is 'const' removed? cause htod sucks. D1 didn't have const and htod wasn't updated for ages.

Re: htod - const

2012-03-06 Thread Trass3r
Am 06.03.2012, 20:13 Uhr, schrieb maarten van damme maartenvd1...@gmail.com: I wouldn't say that it sucks. It has really helped a lot in porting some simple header files. It goes terribly bad on the more complex though. Sadly, using regular expressions is much more efficient. At least

Re: htod - const

2012-03-06 Thread Andrej Mitrovic
On 3/6/12, Trass3r u...@known.com wrote: Sadly, using regular expressions is much more efficient. Do you have some script that does that and sorta works? I've tried others (e.g. dstep but couldn't get LLVM to compile unfortunately..).

Re: htod

2011-08-15 Thread Jason King
Thank you very much, that solved my issue. C:\dirhtod -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.

Re: htod

2011-08-15 Thread Jacob Carlborg
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.

Re: htod

2011-08-13 Thread Jacob Carlborg
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 d...@me.com mailto:d...@me.com On 2011

Re: htod

2011-08-13 Thread Jacob Carlborg
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.

htod

2011-08-12 Thread Jason King
I'm attempting to convert a c header to d using htod. If this is not current best practice please point me in another direction. C:\dirhtod -I c:\d\dm\include ocilib.h Fatal error: unable to open input file 'stdlib.h' C:\dirdir c:\d\dm\include\stdlib.h Directory of c:\d\dm\include 07/28

Re: htod

2011-08-12 Thread Jonathan M Davis
On Friday, August 12, 2011 04:07:47 Jason King wrote: I'm attempting to convert a c header to d using htod. If this is not current best practice please point me in another direction. C:\dirhtod -I c:\d\dm\include ocilib.h Fatal error: unable to open input file 'stdlib.h' C:\dirdir c:\d

Re: htod

2011-08-12 Thread simendsjo
On 12.08.2011 11:24, Jonathan M Davis wrote: On Friday, August 12, 2011 04:07:47 Jason King wrote: I'm attempting to convert a c header to d using htod. If this is not current best practice please point me in another direction. C:\dirhtod -I c:\d\dm\include ocilib.h Fatal error: unable

Re: htod

2011-08-12 Thread Jason King
My expectation is not that I can htod that 17k line header and magically have a d module. A lot of the header is #define'd constants and typedefs and I _do_ expect htod to remove some of the scutwork involved there. At this point I'd just be happy if it ran w/o error. There's nothing

Re: htod

2011-08-12 Thread Jacob Carlborg
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

Re: htod

2011-08-12 Thread Trass3r
Am 12.08.2011, 13:35 Uhr, schrieb Jacob Carlborg d...@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

Re: htod

2011-08-12 Thread Trass3r
htod is a fork of dmc or something, right? Yep. How difficult is it to update the program to make it more user friendly? Only Walter can. Is the source public? No. Would it be better to use gcc or clang instead? Hell yeah. Clang's predestined for that.

Re: htod

2011-08-12 Thread Andrej Mitrovic
On 8/12/11, Jason King jhk...@airmail.net wrote: I'm attempting to convert a c header to d using htod. If this is not current best practice please point me in another direction. C:\dirhtod -I c:\d\dm\include ocilib.h Fatal error: unable to open input file 'stdlib.h' You have an extra space

Re: htod

2011-08-12 Thread Jacob Carlborg
On 2011-08-12 13:48, Trass3r wrote: Am 12.08.2011, 13:35 Uhr, schrieb Jacob Carlborg d...@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

Re: htod

2011-08-12 Thread Trass3r
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

Re: htod and system files

2011-03-05 Thread simendsjo
On 05.03.2011 20:04, Bekenn wrote: On 3/4/2011 3:31 PM, simendsjo wrote: The htod page, http://www.digitalmars.com/d/2.0/htod.html, says that system files will be included using the -hs option. htod mysql.h -hs Fatal error: unable to open input file 'sys/types.h' Does it try to find