c-for-go
c-for-go copied to clipboard
Automatic C-Go Bindings Generator for Go Programming Language
My naive attempt of generating bindings for v8.h via: ```yaml GENERATOR: PackageName: v8 PackageDescription: "Package v8 provides Go bindings for V8" # PkgConfigOpts: [v8] Includes: ["v8.h"] Options: SafeStrings: true PARSER:...
`modernc.org/cc` was deprecated as of July, and is now versioned. The latest major version is v3: https://pkg.go.dev/modernc.org/cc/v3 ``` go: modernc.org/[email protected]: reading modernc.org/cc/go.mod at revision v1.0.0: git fetch -f origin refs/heads/*:refs/heads/*...
Hey there! I'm the author of [Notcurses](https://github.com/dankamongmen/notcurses), and I'm considering use of c-for-go [to generate our Go bindings](https://github.com/dankamongmen/notcurses/issues/786). I've created the following simple `notcurses.yml`: ``` [schwarzgerat](0) $ cat notcurses.yml #...
The `PassRef` or `PassValue` does not copy data in Go struct to C struct if `ref00000000` is not nil. I want to modify C struct in libvpx (with libvpx-go) so...
As the title says, there are several incomplete ffmpeg bindings out there. A generated binding would be very helpful. - [ ] I can try this tool myself, but I...
Hi, I want to generate cgo files for https://github.com/axboe/liburing/blob/master/src/include/liburing.h But got this: ``` processing liburing.yml ⠋[ERR] /usr/include/liburing.h:149:3: unexpected ':', expected assembler operands or one of ['[', string literal] ``` And...
``` /usr/local/include/libr/r_socket.h:65:21: cannot determine size of struct sockaddr_in (and 1 more errors) ``` Here is the line causing it https://github.com/radare/radare2/blob/master/libr/include/r_socket.h#L65 radare2.yml contents: ```yaml --- GENERATOR: PackageName: radare2 PackageDescription: "Package radare2...
I'm trying to rebuild the generated bindings in [xlab/vorbis-go](https://github.com/xlab/vorbis-go), but I'm having some difficulties with the std headers. After modifying the call the to `c-for-go`: ``` c-for-go --ccincl vorbis.yml ```...
Given the following header: ```C # demo.h uint8_t count_colors(const char *const *colors_ptr, size_t colors_len); ``` When I generate bindings using the following configuration: ```YAML --- GENERATOR: PackageName: generated PackageDescription: PackageLicense:...
I'm attempting to wrap a commercial 3rd party lib and hitting a lot of issues, mostly around typedefs of struct *. Likely I'm missing something in the config/doco but here...