digitalmars.D.learn - Is there an easy way to convert a C header to a D module?
- Tim (5/5) Mar 14 2021 I'm needing to use a c/c++ library in a D program and I'm
- Adam D. Ruppe (4/8) Mar 14 2021 https://github.com/jacob-carlborg/dstep
- Tim (2/10) Mar 14 2021 Seems pretty good. Does it work on c++ stuff too?
- Adam D. Ruppe (2/3) Mar 14 2021 I don't think so....
- Tim (3/6) Mar 14 2021 Bother. Well, I'm sure it will still be useful though. Thanks for
- evilrat (5/17) Mar 14 2021 (shameless plug) You can try my crappy generator[1] for C++
I'm needing to use a c/c++ library in a D program and I'm struggling with creating a binding as it seems like an enormous amount of regex modifications. Is there an existing program that can create most if not all of a binding for me? Thanks
Mar 14 2021
On Monday, 15 March 2021 at 01:53:31 UTC, Tim wrote:I'm needing to use a c/c++ library in a D program and I'm struggling with creating a binding as it seems like an enormous amount of regex modifications. Is there an existing program that can create most if not all of a binding for me?https://github.com/jacob-carlborg/dstep That does most of it, then you fix it up with some regex or whatever to finish the job.
Mar 14 2021
On Monday, 15 March 2021 at 02:03:09 UTC, Adam D. Ruppe wrote:On Monday, 15 March 2021 at 01:53:31 UTC, Tim wrote:Seems pretty good. Does it work on c++ stuff too?I'm needing to use a c/c++ library in a D program and I'm struggling with creating a binding as it seems like an enormous amount of regex modifications. Is there an existing program that can create most if not all of a binding for me?https://github.com/jacob-carlborg/dstep That does most of it, then you fix it up with some regex or whatever to finish the job.
Mar 14 2021
On Monday, 15 March 2021 at 02:43:01 UTC, Tim wrote:Seems pretty good. Does it work on c++ stuff too?I don't think so....
Mar 14 2021
On Monday, 15 March 2021 at 02:47:12 UTC, Adam D. Ruppe wrote:On Monday, 15 March 2021 at 02:43:01 UTC, Tim wrote:Bother. Well, I'm sure it will still be useful though. Thanks for the heads upSeems pretty good. Does it work on c++ stuff too?I don't think so....
Mar 14 2021
On Monday, 15 March 2021 at 02:43:01 UTC, Tim wrote:On Monday, 15 March 2021 at 02:03:09 UTC, Adam D. Ruppe wrote:(shameless plug) You can try my crappy generator[1] for C++ There is also dpp[2] which probably can convert C++ decls to D [1] https://github.com/Superbelko/ohmygentool [2] https://code.dlang.org/packages/dppOn Monday, 15 March 2021 at 01:53:31 UTC, Tim wrote:Seems pretty good. Does it work on c++ stuff too?I'm needing to use a c/c++ library in a D program and I'm struggling with creating a binding as it seems like an enormous amount of regex modifications. Is there an existing program that can create most if not all of a binding for me?https://github.com/jacob-carlborg/dstep That does most of it, then you fix it up with some regex or whatever to finish the job.
Mar 14 2021