You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2015/07/20 23:32:15 UTC
[1/2] lucy git commit: Remove now-redundant Go ctor bindings.
Repository: lucy
Updated Branches:
refs/heads/master a4d556b2c -> 967088585
Remove now-redundant Go ctor bindings.
Now that Clownfish autogenerates constructor bindings, these are not
needed.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/b2e2f8c0
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/b2e2f8c0
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/b2e2f8c0
Branch: refs/heads/master
Commit: b2e2f8c0858ae931cd5e7de4dc324bbd9c3d554a
Parents: a4d556b
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Tue Jul 14 14:32:56 2015 -0700
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Mon Jul 20 14:14:07 2015 -0700
----------------------------------------------------------------------
go/lucy/analysis.go | 32 --------------------------------
go/lucy/plan.go | 10 ----------
2 files changed, 42 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/b2e2f8c0/go/lucy/analysis.go
----------------------------------------------------------------------
diff --git a/go/lucy/analysis.go b/go/lucy/analysis.go
deleted file mode 100644
index 28cb52d..0000000
--- a/go/lucy/analysis.go
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package lucy
-
-/*
-#include "Lucy/Analysis/Analyzer.h"
-#include "Lucy/Analysis/EasyAnalyzer.h"
-*/
-import "C"
-import "unsafe"
-
-import "git-wip-us.apache.org/repos/asf/lucy-clownfish.git/runtime/go/clownfish"
-
-func NewEasyAnalyzer(language string) EasyAnalyzer {
- lang := clownfish.NewString(language)
- cfObj := C.lucy_EasyAnalyzer_new((*C.cfish_String)(unsafe.Pointer(lang.TOPTR())))
- return WRAPEasyAnalyzer(unsafe.Pointer(cfObj))
-}
http://git-wip-us.apache.org/repos/asf/lucy/blob/b2e2f8c0/go/lucy/plan.go
----------------------------------------------------------------------
diff --git a/go/lucy/plan.go b/go/lucy/plan.go
index c11c1e0..1ebd0bf 100644
--- a/go/lucy/plan.go
+++ b/go/lucy/plan.go
@@ -25,11 +25,6 @@ import "unsafe"
import "git-wip-us.apache.org/repos/asf/lucy-clownfish.git/runtime/go/clownfish"
-func NewSchema() Schema {
- cfObj := C.lucy_Schema_new()
- return WRAPSchema(unsafe.Pointer(cfObj))
-}
-
func (obj *SchemaIMP) SpecField(field string, fieldType FieldType) {
self := ((*C.lucy_Schema)(unsafe.Pointer(obj.TOPTR())))
fieldCF := clownfish.NewString(field)
@@ -38,8 +33,3 @@ func (obj *SchemaIMP) SpecField(field string, fieldType FieldType) {
(*C.lucy_FieldType)(unsafe.Pointer(fieldType.TOPTR())))
}
-func NewFullTextType(analyzer Analyzer) FullTextType {
- cfObj := C.lucy_FullTextType_new(
- (*C.lucy_Analyzer)(unsafe.Pointer(analyzer.TOPTR())))
- return WRAPFullTextType(unsafe.Pointer(cfObj))
-}
[2/2] lucy git commit: Merge branch 'ctor_autogen_go-v2'
Posted by ma...@apache.org.
Merge branch 'ctor_autogen_go-v2'
Adapt for recent changes to Clownfish in apache/lucy-clownfish#26.
A couple constructor bindings which were hand-coded can now be autogenerated.
This closes #16.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/96708858
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/96708858
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/96708858
Branch: refs/heads/master
Commit: 9670885850f76d05fc9c898fd2e7e4bee4eef62f
Parents: a4d556b b2e2f8c
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Mon Jul 20 14:29:54 2015 -0700
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Mon Jul 20 14:29:54 2015 -0700
----------------------------------------------------------------------
go/lucy/analysis.go | 32 --------------------------------
go/lucy/plan.go | 10 ----------
2 files changed, 42 deletions(-)
----------------------------------------------------------------------