Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type C.struct_ in strut and func #136

Open
mopo3ilo opened this issue Nov 5, 2022 · 1 comment
Open

type C.struct_ in strut and func #136

mopo3ilo opened this issue Nov 5, 2022 · 1 comment

Comments

@mopo3ilo
Copy link

mopo3ilo commented Nov 5, 2022

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants