@@ -281,7 +281,7 @@ otherwise parameter is a python list that we copy from
281281 g .gofile .Printf ("//export %s_len\n " , slNm )
282282 g .gofile .Printf ("func %s_len(handle CGoHandle) int {\n " , slNm )
283283 g .gofile .Indent ()
284- g .gofile .Printf ("return len(*ptrFromHandle_ %s(handle))\n " , slNm )
284+ g .gofile .Printf ("return len(deptrFromHandle_ %s(handle))\n " , slNm )
285285 g .gofile .Outdent ()
286286 g .gofile .Printf ("}\n \n " )
287287
@@ -291,7 +291,7 @@ otherwise parameter is a python list that we copy from
291291 g .gofile .Printf ("//export %s_elem\n " , slNm )
292292 g .gofile .Printf ("func %s_elem(handle CGoHandle, _ky %s) %s {\n " , slNm , ksym .cgoname , esym .cgoname )
293293 g .gofile .Indent ()
294- g .gofile .Printf ("s := *ptrFromHandle_ %s(handle)\n " , slNm )
294+ g .gofile .Printf ("s := deptrFromHandle_ %s(handle)\n " , slNm )
295295 if ksym .py2go != "" {
296296 g .gofile .Printf ("v, ok := s[%s(_ky)%s]\n " , ksym .py2go , ksym .py2goParenEx )
297297 } else {
@@ -316,7 +316,7 @@ otherwise parameter is a python list that we copy from
316316 g .gofile .Printf ("//export %s_contains\n " , slNm )
317317 g .gofile .Printf ("func %s_contains(handle CGoHandle, _ky %s) C.char {\n " , slNm , ksym .cgoname )
318318 g .gofile .Indent ()
319- g .gofile .Printf ("s := *ptrFromHandle_ %s(handle)\n " , slNm )
319+ g .gofile .Printf ("s := deptrFromHandle_ %s(handle)\n " , slNm )
320320 if ksym .py2go != "" {
321321 g .gofile .Printf ("_, ok := s[%s(_ky)%s]\n " , ksym .py2go , ksym .py2goParenEx )
322322 } else {
@@ -332,7 +332,7 @@ otherwise parameter is a python list that we copy from
332332 g .gofile .Printf ("//export %s_set\n " , slNm )
333333 g .gofile .Printf ("func %s_set(handle CGoHandle, _ky %s, _vl %s) {\n " , slNm , ksym .cgoname , esym .cgoname )
334334 g .gofile .Indent ()
335- g .gofile .Printf ("s := *ptrFromHandle_ %s(handle)\n " , slNm )
335+ g .gofile .Printf ("s := deptrFromHandle_ %s(handle)\n " , slNm )
336336 if ksym .py2go != "" {
337337 g .gofile .Printf ("s[%s(_ky)%s] = " , ksym .py2go , ksym .py2goParenEx )
338338 } else {
@@ -352,7 +352,7 @@ otherwise parameter is a python list that we copy from
352352 g .gofile .Printf ("//export %s_delete\n " , slNm )
353353 g .gofile .Printf ("func %s_delete(handle CGoHandle, _ky %s) {\n " , slNm , ksym .cgoname )
354354 g .gofile .Indent ()
355- g .gofile .Printf ("s := *ptrFromHandle_ %s(handle)\n " , slNm )
355+ g .gofile .Printf ("s := deptrFromHandle_ %s(handle)\n " , slNm )
356356 if ksym .py2go != "" {
357357 g .gofile .Printf ("delete(s, %s(_ky)%s)\n " , ksym .py2go , ksym .py2goParenEx )
358358 } else {
@@ -367,7 +367,7 @@ otherwise parameter is a python list that we copy from
367367 g .gofile .Printf ("//export %s_keys\n " , slNm )
368368 g .gofile .Printf ("func %s_keys(handle CGoHandle) CGoHandle {\n " , slNm )
369369 g .gofile .Indent ()
370- g .gofile .Printf ("s := *ptrFromHandle_ %s(handle)\n " , slNm )
370+ g .gofile .Printf ("s := deptrFromHandle_ %s(handle)\n " , slNm )
371371 g .gofile .Printf ("kys := make(%s, 0, len(s))\n " , keyslsym .goname )
372372 g .gofile .Printf ("for k := range(s) {\n " )
373373 g .gofile .Indent ()
0 commit comments