Thanks!
; 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
lways have to hand-edit the results of
htod.
cheers
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
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
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.
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
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.
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.
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
Is there an htod for linux or an equivalent that works with Cpp,
there is dstep but it does not support Cpp.
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
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
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
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.
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.
How people use it on Linux, if htod is required to import C
libraries and windows only?f
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.
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
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
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.
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
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
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 ?
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
Why is 'const' removed?
cause htod sucks.
D1 didn't have const and htod wasn't updated for ages.
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.
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.
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
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..).
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.
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.
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
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.
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
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
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
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
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
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
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.
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
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
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
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
45 matches
Mail list logo