diff options
author | Ian Lance Taylor <iant@golang.org> | 2016-01-29 13:18:39 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2016-01-29 13:18:39 -0800 |
commit | 8c66b9cf5ed003dff18db01a55cbd45d35a0990f (patch) | |
tree | 59470d810abce3c9236c102609978cfcadaf1b91 /code/sqlite3-binding.c | |
parent | Merge pull request #266 from tcyrus/patch-1 (diff) | |
download | golite-8c66b9cf5ed003dff18db01a55cbd45d35a0990f.tar.gz golite-8c66b9cf5ed003dff18db01a55cbd45d35a0990f.tar.xz |
callback: use handles rather than passing Go pointers
The cgo pointer passing rules forbid passing a Go pointer to C if that
pointer points to memory containing other Go pointers. This is true
even if the Go pointer is converted to uintptr.
This change fixes the code to use a handle instead, and to look up the
handle in the callback function.
Diffstat (limited to 'code/sqlite3-binding.c')
0 files changed, 0 insertions, 0 deletions