aboutsummaryrefslogtreecommitdiff
path: root/code/sqlite3-binding.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-01-29 13:18:39 -0800
committerIan Lance Taylor <iant@golang.org>2016-01-29 13:18:39 -0800
commit8c66b9cf5ed003dff18db01a55cbd45d35a0990f (patch)
tree59470d810abce3c9236c102609978cfcadaf1b91 /code/sqlite3-binding.c
parentMerge pull request #266 from tcyrus/patch-1 (diff)
downloadgolite-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