Add missing constructor for PolySearcher.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/a4d556b2 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/a4d556b2 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/a4d556b2 Branch: refs/heads/master Commit: a4d556b2c57629972b3a28674639e2c5dc047ab1 Parents: bb94960 Author: Marvin Humphrey <[email protected]> Authored: Mon Jul 20 12:52:12 2015 -0700 Committer: Marvin Humphrey <[email protected]> Committed: Mon Jul 20 12:52:12 2015 -0700 ---------------------------------------------------------------------- core/Lucy/Search/PolySearcher.c | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy/blob/a4d556b2/core/Lucy/Search/PolySearcher.c ---------------------------------------------------------------------- diff --git a/core/Lucy/Search/PolySearcher.c b/core/Lucy/Search/PolySearcher.c index 69a1f99..79f1831 100644 --- a/core/Lucy/Search/PolySearcher.c +++ b/core/Lucy/Search/PolySearcher.c @@ -34,6 +34,12 @@ #include "Lucy/Search/Compiler.h" PolySearcher* +PolySearcher_new(Schema *schema, Vector *searchers) { + PolySearcher *self = (PolySearcher*)Class_Make_Obj(POLYSEARCHER); + return PolySearcher_init(self, schema, searchers); +} + +PolySearcher* PolySearcher_init(PolySearcher *self, Schema *schema, Vector *searchers) { const uint32_t num_searchers = Vec_Get_Size(searchers); int32_t *starts_array = (int32_t*)MALLOCATE(num_searchers * sizeof(int32_t));
