xlab / c-for-go

Automatic C-Go Bindings Generator for Go Programming Language
https://c.for-go.com
MIT License
1.5k stars 119 forks source link

type C.struct_ in strut and func #136

Open mopo3ilo opened 2 years ago

mopo3ilo commented 2 years ago

c-for-go@v0.0.0-20221031195837-eaf8c81cbbe7

tcl.h 8.6.12

typedef struct Tcl_Channel_ *Tcl_Channel;
typedef struct Tcl_ChannelTypeVersion_ *Tcl_ChannelTypeVersion;

result

// 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
type Tcl_ChannelTypeVersion C.struct_Tcl_ChannelTypeVersion_

// Tcl_ChannelType as declared in include/tcl.h:1607
type Tcl_ChannelType struct {
...
    version          Tcl_ChannelTypeVersion_
...
}

// TclStubs as declared in include/tclDecls.h:2545
type TclStubs struct {
...
    tcl_GetTopChannel                      Tcl_Channel
    tcl_ChannelBuffered                    *func(_chan Tcl_Channel_) int32
    tcl_ChannelName                        *func(chanTypePtr *Tcl_ChannelType) string
    tcl_ChannelVersion                     Tcl_ChannelTypeVersion
...
}
lotodore commented 2 years ago

I'm sorry I do not understand this issue. Could you please be more verbose as to what the actual problem is?