www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - glibc resolve.h for D

reply =?UTF-8?B?TcOhcmNpbw==?= Martins <marcioapm gmail.com> writes:
Anyone has a binding readily available that I can use?
code.dlang.org is down, so I can't check there - I am in a hurry! 
:)
Feb 08
next sibling parent John Colvin <john.loughran.colvin gmail.com> writes:
On Wednesday, 8 February 2017 at 12:49:39 UTC, Márcio Martins 
wrote:
 Anyone has a binding readily available that I can use?
 code.dlang.org is down, so I can't check there - I am in a 
 hurry! :)
I dont' have one, but if you're in a hurry then copy and port the C function/constant defs and port them one-by-one as you need them (it's not like you're going to call every single function and use every single constant are you?). It's a tiny amount of work. I often write as if I *have* ported the header and then just use the compiler errors to fill in the gaps. P.S. there's no need to port the __res_state struct as afaics it's never used directly in the API: struct __res_state; alias res_state = __res_state*; will do fine.
Feb 08
prev sibling parent Seb <seb wilzba.ch> writes:
On Wednesday, 8 February 2017 at 12:49:39 UTC, Márcio Martins 
wrote:
 Anyone has a binding readily available that I can use?
 code.dlang.org is down, so I can't check there - I am in a 
 hurry! :)
Use dstep to generate the binding automatically: https://github.com/jacob-carlborg/dstep
Feb 08