You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typedefstruct {
intA;
} member;
typedefstruct {
size_tsize; // size of array defined belowtype1*members; // pointer to an array of members
} members;
// function returning members as valuemembersget_members(void);
I've instructed c-for-go to generates MemTips if kind bind for member and members. the wrapper for get_members() looks ruffly like this:
with the above fix, I can call .Deref() which sets the .Size member to value of the underlying c-struct but the .Members ([]Member) does not get filled in
do I miss an important instruction in the yaml file or is this simply a limitation on c-to-go?
The text was updated successfully, but these errors were encountered:
I have following situation:
I've instructed c-for-go to generates MemTips if kind bind for
member
andmembers
. the wrapper forget_members()
looks ruffly like this:now I have the following problems:
GetMembers
seems to return a wrongly initialized struct as it simply uses the c-structs pointer and casts it. changing it to:seems to fix that...
with the above fix, I can call
.Deref()
which sets the.Size
member to value of the underlying c-struct but the.Members
([]Member
) does not get filled indo I miss an important instruction in the yaml file or is this simply a limitation on c-to-go?
The text was updated successfully, but these errors were encountered: