Anonymous avatar Anonymous committed 146d874

fixes for go1-cgo

Comments (0)

Files changed (2)

pkg/croot/croot.go

 	c_title := C.CString(title)
 	defer C.free(unsafe.Pointer(c_title))
 
-	f := C.CRoot_File_Open(c_name, c_option, c_title, C.int32_t(compress), C.int32_t(netopt))
+	f := C.CRoot_File_Open(c_name, (*C.CRoot_Option)(c_option), c_title, C.int32_t(compress), C.int32_t(netopt))
 	return &File{f:f}
 }
 
 	c_option := C.CString(option)
 	defer C.free(unsafe.Pointer(c_option))
 
-	C.CRoot_File_Close(self.f, c_option)
+	C.CRoot_File_Close(self.f, (*C.CRoot_Option)(c_option))
 }
 
 func (self *File) GetFd() int {
 	c_option := C.CString(option)
 	defer C.free(unsafe.Pointer(c_option))
 
-	C.CRoot_Tree_Print(self.t, c_option)
+	C.CRoot_Tree_Print(self.t, (*C.CRoot_Option)(c_option))
 }
 
 func (self *Tree) SetBranchAddress(name string, obj interface{}) int32 {

pkg/croot/croot_genreflex.go

  #include <stdlib.h>
  #include <string.h>
 
-
+ static
  void
  _go_reflex_dummy_ctor_stub(void *retaddr, void *mem, void *args, void *ctx)
  {}
 
+ static
  void*
  _get_go_reflex_dummy_ctor_stub() { return &_go_reflex_dummy_ctor_stub; }
 
+ static
  void
  _go_reflex_dummy_dtor_stub(void *retaddr, void *mem, void *args, void *ctx)
  {}
 
+ static
  void*
  _get_go_reflex_dummy_dtor_stub() { return &_go_reflex_dummy_dtor_stub; }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.