c-for-go
c-for-go copied to clipboard
Automatic C-Go Bindings Generator for Go Programming Language
I'm writing bindings for https://github.com/roc-project/roc and as it is an audio streaming library, it's very sensitive when it comes to memory allocations, because we need to be as quick as...
I am trying to wrap [CoolProp](https://github.com/CoolProp/CoolProp). I am a newbie in go, coolprop and c-for-go, so what can go wrong? ;oP I am trying the following: ```yml --- GENERATOR: PackageName:...
I've seen https://github.com/xlab/c-for-go/issues/66 but it looks like updating the packages does not work for me. [The changes here](https://gitlab.com/cznic/cc/commit/a666f2ddc99ed82af6ce85864324c283c8b2f554) do not seem to be in `model.go`, which is strange. I am...
I have a C function from a vendor supplied library defined like this: `int askName(int id, char **outName);` When generating C binding code with PtrTrips.tips = sref, I get this...
I want to wrap a vendor's C API that expects the use of custom memory malloc/free functions. See the code below ``` int VENDOR_ask_full_version( char** release /**< (OF) A string...
Certain header files, such as stddef.h are compiler and/or version dependent and do not reside in /usr/include for compatibility reasons. c-for-go however does not look for these directories. Running `...
Hello I am trying to create some bindings with [Sundials](https://github.com/LLNL/sundials). I have little clue about C/C++ and I have just started with Go a couple of weeks ago. After this...
Any possible to config PtrTips or TypeTips to generate code like this **input:** ```c int open(char* path); ``` **expected output:** ```go func open(path string) int {} ``` **actual output:** ```go...
Trying to use c-for-go, I get the following error: ``` processing foo.yml ⠇[ERR] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/stdio.h:461:16: unexpected char, expected one of [',', ';', '='] (and 3 more errors) ```
I have a fairly large and complicated C library that I would like to provide as golang binding. However at the moment I'm facing weird behavior and I'm not sure...