c-for-go icon indicating copy to clipboard operation
c-for-go copied to clipboard

type C.struct_ in strut and func

Open mopo3ilo opened this issue 2 years ago • 1 comments

[email protected]

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
...
}

mopo3ilo avatar Nov 05 '22 01:11 mopo3ilo