Since those C functions are already returning a return code through the 
return value and C only has one return, that's not really possible. I could 
allocate 4 bytes of C memory, pass the address to that, make the call, 
return the value and free the memory - and I will do that if we get to the 
point where those two functions are the last two not working but we aren't 
there yet. As I noted, just running DeleteE() is enough to get failures and 
there is NO passing of Go storage addresses to C in that path.

SteveE

On Friday, May 24, 2019 at 11:58:04 AM UTC-4, Michael Jones wrote:
>
> and when you change that "pass a pointer" to "have a shim c-side function 
> return a uint32 that you just assign on the Go side," what happens?
>
> <snip>-- 
>
> *Michael T. jonesmichae...@gmail.com <javascript:>*
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/e20f4878-8b6c-4840-bc78-ec3c8e80efa2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to