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

[email protected] tcl.h 8.6.12 ```c typedef struct Tcl_Channel_ *Tcl_Channel; typedef struct Tcl_ChannelTypeVersion_ *Tcl_ChannelTypeVersion; ``` result ```go // Tcl_Channel as declared in include/tcl.h:543 type Tcl_Channel C.struct_Tcl_Channel_ // Tcl_ChannelTypeVersion as declared in include/tcl.h:544...

I have following situation: ```c typedef struct { int A; } member; typedef struct { size_t size; // size of array defined below type1* members; // pointer to an array...

In C, some legit enum definitions can generate problematic generations in Go. For example: ```c typedef enum { STATUS_INIT = 0, STATUS_STARTED = 1, STATUS_RUNNING = 2, ... STATUS_FAILED =...

bug
enhancement
help wanted

I'm trying to generate some Go code from C enums, and the generated output has the enums and their values 🎉 but it also includes a bunch of stdlib types/defines...

Basically, my issue it's the same as #146, if someone could help me, it will be good :-)

Hello, I forked https://github.com/golang-ui/nuklear and made it build it again on Ubuntu 24.04. Here is the link to the repo https://github.com/agreppin/nuklear/blob/main/nk.yml. c-for-go now has problem generating the following structs: -...

Hello, I got a C function returns struct like this: ``` typedef struct Result { char *version; } Result; struct Result init(void); ``` With generated go is ``` type Result...

``` DESKTOP-87I50MT:~/gocraft/vulkan# ~/go/bin/c-for-go -ccdefs -out . vulkan.yml processing vulkan.yml ⠋[WARN] `cpp -dM` failed: exit status 1 /usr/include/vulkan/vulkan_beta.h:119:38: unexpected '*', expected ';' /usr/include/vulkan/vulkan_beta.h:121:38: unexpected '*', expected ';' /usr/include/vulkan/vulkan_beta.h:174:32: unexpected '*', expected...

```yaml --- GENERATOR: PackageName: vorbis PackageDescription: "Package vorbis provides Go bindings for OggVorbis implementation by the Xiph.Org Foundation" PackageLicense: "THE AUTOGENERATED LICENSE. ALL THE RIGHTS ARE RESERVED BY ROBOTS." PkgConfigOpts:...

Hi! I am trying to use this project to generate the bindings of libraw1394. When using the following description, I got 2 errors after running `c-for-go -ccdefs -ccincl -debug -fancy...