From f826cf9d42cc34e2ae5aaf6ede892ecab9d2f198 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Sun, 14 Aug 2016 00:44:18 +0200 Subject: fix tests and examples --- cshared/remote_cshared.go | 11 +++++------ cshared/repository_cshared.go | 10 ++++------ 2 files changed, 9 insertions(+), 12 deletions(-) (limited to 'cshared') diff --git a/cshared/remote_cshared.go b/cshared/remote_cshared.go index abed3c9..ee52e41 100644 --- a/cshared/remote_cshared.go +++ b/cshared/remote_cshared.go @@ -1,12 +1,9 @@ // +build ignore package main -import ( - "C" +import "C" - "gopkg.in/src-d/go-git.v4" - "gopkg.in/src-d/go-git.v4/clients/common" -) +/* //export c_Remote_get_Endpoint func c_Remote_get_Endpoint(r uint64) *C.char { @@ -189,4 +186,6 @@ func c_Remote_Refs(r uint64) uint64 { remote := obj.(*git.Remote) refs := remote.Refs() return uint64(RegisterObject(refs)) -} \ No newline at end of file +} + +*/ diff --git a/cshared/repository_cshared.go b/cshared/repository_cshared.go index 8320f98..e11a6c0 100644 --- a/cshared/repository_cshared.go +++ b/cshared/repository_cshared.go @@ -1,13 +1,9 @@ // +build ignore package main -import ( - "C" +import "C" - "gopkg.in/src-d/go-git.v4" - "gopkg.in/src-d/go-git.v4/clients/common" - "gopkg.in/src-d/go-git.v4/core" -) +/* //export c_Repository func c_Repository() uint64 { @@ -232,3 +228,5 @@ func c_Repository_Object(r uint64, h []byte) (uint64, int, *C.char) { robj_handle := RegisterObject(robj) return uint64(robj_handle), ErrorCodeSuccess, nil } + +*/ -- cgit