On Friday, 29 June 2018 at 06:04:10 UTC, Andre Pany wrote:
Thanks a lot for the great help.
You are right, until now I haven't looked at the include
folder, I thought the "surface" folder is the folder with the
public api. But it seems also in the include folder, the header
files contains
On Friday, 29 June 2018 at 01:38:23 UTC, evilrat wrote:
On Thursday, 28 June 2018 at 18:43:11 UTC, Andre Pany wrote:
[...]
No, unfortunately D cannot interface with C templates, only C++
templates. But just by coincidence this is C++ source code (and
so the templates).
So it is possible
On Thursday, 28 June 2018 at 18:43:11 UTC, Andre Pany wrote:
Hi,
I try to write a binding for the GRPC core. There is a struct
which has some ugly fields:
(https://github.com/grpc/grpc/blob/master/src/core/lib/surface/call.cc#L229)
struct grpc_call {
gpr_refcount ext_ref;
gpr_arena*
Hi,
I try to write a binding for the GRPC core. There is a struct
which has some ugly fields:
(https://github.com/grpc/grpc/blob/master/src/core/lib/surface/call.cc#L229)
struct grpc_call {
gpr_refcount ext_ref;
gpr_arena* arena;
...
grpc_core::ManualConstructor
sending_stream;
On Friday, 26 May 2017 at 15:17:08 UTC, drug wrote:
Trying to bind to cpp code I stop at some moment having
undefined reference to some cpp function. But objdump -Ct
cpplibrary.so shows me that this cpp function exists in the
library. linker message about cpp function is _identical_ to
27.05.2017 02:44, Nicholas Wilson пишет:
Thats weird. DMD may have got the mangling wrong. Could you post the
exact mangling (i.e. non-demangled)? And if DMD has got it wrong and its
just the one function you could just `pragma(mangle, ...);` it.
I use pragma(mangle, "...") (how I forget about
On Friday, 26 May 2017 at 15:17:08 UTC, drug wrote:
Trying to bind to cpp code I stop at some moment having
undefined reference to some cpp function. But objdump -Ct
cpplibrary.so shows me that this cpp function exists in the
library. linker message about cpp function is _identical_ to
On Friday, 26 May 2017 at 15:17:08 UTC, drug wrote:
Trying to bind to cpp code I stop at some moment having
undefined reference to some cpp function. But objdump -Ct
cpplibrary.so shows me that this cpp function exists in the
library. linker message about cpp function is _identical_ to
Trying to bind to cpp code I stop at some moment having undefined
reference to some cpp function. But objdump -Ct cpplibrary.so shows me
that this cpp function exists in the library. linker message about cpp
function is _identical_ to objdump message so I don't know where is the
difference.
On Wednesday, 3 February 2016 at 04:19:37 UTC, jmh530 wrote:
A few extra questions: 1) In other parts of the code I'm using
extern(System), but that doesn't work for these. Why is
extern(C) used for function pointers?,
extern(C) is only used with function pointers when it's needed.
It
I'm working on generating a binding to a C library. I've got the
.h file converted and can call some parts of the library with no
errors. However, I have reached a stumbling block in a critical
part.
The library requires passing function pointers to various
functions in the library. When I
On Tuesday, 2 February 2016 at 22:56:28 UTC, jmh530 wrote:
I'm working on generating a binding to a C library. I've got
the .h file converted and can call some parts of the library
with no errors. However, I have reached a stumbling block in a
critical part.
The library requires passing
On Tuesday, 2 February 2016 at 22:56:28 UTC, jmh530 wrote:
My D code calls a C function. One of the parameters to the C
function is a function pointer to a D function. This D function
(below) is one that I copied from the C library's tutorial. I
only slightly changed the signature. This
On Wednesday, 3 February 2016 at 00:28:24 UTC, biozic wrote:
Is grad allocated in the D code? If so, it could have been
collected because the GC lost track of its use when passing to
and from the C code. Or is grad owned by the C code? If so,
either there is a bug in the library or it's
On Wednesday, 3 February 2016 at 00:37:25 UTC, Mike Parker wrote:
The parameter to the C function should be declared as
extern(C), and so should your function implementation.
extern(C) alias FuncPtr = double function(uint, const(double)*,
double*, void*);
extern(C) void
On 2015-07-10 05:38, Craig Dillabaugh wrote:
I am trying to bind to a C union with a number of nested structs
declared as follows:
typedef union {
int Integer;
struct {
int nCount;
int *paList;
} IntegerList;
struct {
int
On Friday, 10 July 2015 at 03:38:49 UTC, Craig Dillabaugh wrote:
I am trying to bind to a C union with a number of nested
structs declared as follows:
typedef union {
int Integer;
struct {
int nCount;
int *paList;
} IntegerList;
struct {
I am trying to bind to a C union with a number of nested structs
declared as follows:
typedef union {
int Integer;
struct {
int nCount;
int *paList;
} IntegerList;
struct {
int nCount;
GIntBig *paList;
} Integer64List;
}
On Tuesday, 12 May 2015 at 03:20:34 UTC, TJB wrote:
I'm sure this question has been asked a thousand times. I've
even asked similar questions in the past (I've been away for
quite a while). But all of the tutorials that I have found
assume quite a lot and leave a lot to be inferred. Is there a
On Tuesday, 12 May 2015 at 03:20:34 UTC, TJB wrote:
I'm sure this question has been asked a thousand times. I've
even asked similar questions in the past (I've been away for
quite a while). But all of the tutorials that I have found
assume quite a lot and leave a lot to be inferred. Is there a
I'm sure this question has been asked a thousand times. I've even
asked similar questions in the past (I've been away for quite a
while). But all of the tutorials that I have found assume quite a
lot and leave a lot to be inferred. Is there a simple step by
step tutorial demonstrating how to
21 matches
Mail list logo