c-for-go icon indicating copy to clipboard operation
c-for-go copied to clipboard

Automatic C-Go Bindings Generator for Go Programming Language

Results 81 c-for-go issues
Sort by recently updated
recently updated
newest added

In latest Xcode releases and especially on macOS Catalina there is no more `/usr/include` dir. But with `-ccincl` it is possible to point c-for-go to the compile-suggested include directories. However,...

bug

When trying to build bindings for Python 3.9 I get the following error: ` processing python.yml ⠹[ERR] /usr/include/stdlib.h:140:17: unexpected identifier strtof32, expected one of ['(', ')', ',', ':', ';', '=',...

Based on a bug in the cgo (https://github.com/golang/go/issues/975) cgogen generate ``` // Krb5buildPrincipal function as declared in krb5/krb5.h:4028 func Krb5buildPrincipal(context Krb5context, princ []*Krb5principal, rlen uint32, realm string) Krb5errorCode { ccontext,...

enhancement
planned

What's the recommended way to dealing with callback funcs, any examples of current conversions doing this? ``` LIB_EXPORT int32_t plc_tag_create_ex(const char *attrib_str, void (*tag_callback_func)(int32_t tag_id, int event, int status, void...

I need to access the data from a field in a C anonymous union within a struct (https://github.com/broadcastervc/ndigo/blob/master/include/Processing.NDI.structs.h#L235-L242) but I'm struggling to understand how I can make c for go...

go version go1.17.11 darwin/amd64 OS macOS Big Sur 11.4 when I run ```sh | => cd bindings/x86/ | => ~/go/bin/c-for-go gen.yml | => mv -v ./x86/* . | => go...

ok, this is a weird one. using the latest `c-for-go`, and `go 1.18.1`, I'm getting types converted to smaller, inaccurate types from what is in the C headers. for instance,...

See https://github.com/vulkan-go/vulkan/issues/43 and https://github.com/vulkan-go/vulkan/pull/62 for details. I could replicate the issue by just running c-for-go on the current vulkan-go/vulkan code. You could presumably figure out what is causing the problem...

Suppose a header file with the following: ``` typedef struct { uint8_t x; } Flarp; uint64_t foo(const Flarp *input_ptr, size_t input_len); ``` With no `TRANSLATOR` `PtrTips` specified, c-for-go generates the...

Firstly, thanks for creating and maintaining such a useful utility. I found commit https://github.com/xlab/c-for-go/commit/ddcfe2673053652b6566fa8fabe6d0966a6b4ed9 changes the default type mapping for `long` and `int` type. Indeed, unless the size is explicitly...