c-for-go
c-for-go copied to clipboard
Automatic C-Go Bindings Generator for Go Programming Language
build
hi,i want bind these rep, https://github.com/intelxed/xed https://github.com/zyantific/zydis https://github.com/HyperDbg/HyperDbg https://github.com/NationalSecurityAgency/ghidra/tree/master/Ghidra/Features/Decompiler then i created a demo ``` package cgo import ( "fmt" "github.com/ddkwork/GolandProjects/golibrary/mylog" "github.com/ddkwork/GolandProjects/golibrary/tool" cmap "github.com/orcaman/concurrent-map/v2" "github.com/xlab/c-for-go/generator" // 导入代码生成器的包 "github.com/xlab/c-for-go/parser" "github.com/xlab/c-for-go/translator" //...
Not an issue, it is information request... Hello, I was wondering if in current implementation a transaltion from: #define BIND_OPTION 0x1 would get translated into: type BindOptions uint8 const (...
I am trying to create bindings [JSBSim](https://github.com/JSBSim-Team/jsbsim) and have the following error: ``` var/jsbsim/src/FGJSBBase.h:42:10: include file not found: var/jsbsim/src/FGJSBBase.h:43:10: include file not found: var/jsbsim/src/FGJSBBase.h:44:10: include file not found: var/jsbsim/src/FGJSBBase.h:45:10: include...
Consider the following C: ``` typedef struct LLVMOpaqueContext *LLVMContextRef; void *LLVMContextGetDiagnosticContext(LLVMContextRef C); ``` and the following config: ``` GENERATOR: PackageName: llvm PackageDescription: "LLVM bindings for Go" PackageLicense: "Apache License v2.0...
I a was attempting to create a set of bindings for libtsk: https://github.com/sleuthkit/sleuthkit Having some trouble on the following struct: https://github.com/sleuthkit/sleuthkit/blob/develop/tsk/fs/tsk_fs.h#L1000 This struct has several callback/function ptr members. For the...
Seems like wiki is a little outdated , and missing some new features, for example, Parser page missing IgnorePaths. Also at translator page, ignore is a new action shown in...
@xlab I'm trying to compare the auto-generated code https://github.com/leslie-wang/opus-go/blob/latest-c-for-go/opus/opus.go and the manual generated one https://github.com/hraban/opus/blob/v2/encoder.go, seems like the auto generated one calls function copyPInt16Bytes twice, in which lock/unlock always happen....
Thanks for this great tool. Is it possible to have a verbose argument to print more message, such as which function/struct are handled by which rule, etc, thus as a...
[email protected] tcl.h 8.6.12 ```c /* * Special freeProc values that may be passed to Tcl_SetResult (see the man * page for details): */ #define TCL_VOLATILE ((Tcl_FreeProc *) 1) #define TCL_STATIC...