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 2013/08/17 19:20:29 UTC

[lucy-commits] [08/11] git commit: refs/heads/master - Address direct calls within Lucy core.

Address direct calls within Lucy core.

Where the functions which implement methods in the Lucy core are invoked
directly rather than via dynamic dispatch, either rename them to _IMP,
change them to dynamic dispatch, or otherwise adapt.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/86952356
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/86952356
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/86952356

Branch: refs/heads/master
Commit: 869523565b88d74be5d1351791a51bd920c20eb4
Parents: 482c3ab
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Sat Aug 10 16:08:38 2013 -0700
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Mon Aug 12 15:11:39 2013 -0700

----------------------------------------------------------------------
 core/Lucy/Analysis/Inversion.c             |  2 +-
 core/Lucy/Document/HitDoc.c                |  4 +++-
 core/Lucy/Highlight/Highlighter.c          |  2 +-
 core/Lucy/Index/DeletionsWriter.c          |  5 ++++-
 core/Lucy/Index/LexiconWriter.c            |  5 ++++-
 core/Lucy/Index/SortWriter.c               |  5 ++++-
 core/Lucy/Index/ZombieKeyedHash.c          |  4 ++--
 core/Lucy/Plan/BlobType.c                  |  4 +++-
 core/Lucy/Plan/FullTextType.c              |  5 ++++-
 core/Lucy/Plan/StringType.c                |  7 +++++--
 core/Lucy/Plan/TextType.c                  |  6 +++---
 core/Lucy/Search/ANDQuery.c                |  4 +++-
 core/Lucy/Search/Collector/SortCollector.c |  5 ++++-
 core/Lucy/Search/MatchAllMatcher.c         |  2 +-
 core/Lucy/Search/NOTMatcher.c              |  2 +-
 core/Lucy/Search/NOTQuery.c                |  6 ++++--
 core/Lucy/Search/ORMatcher.c               |  2 +-
 core/Lucy/Search/ORQuery.c                 |  4 +++-
 core/Lucy/Search/PhraseQuery.c             | 10 ++++++++--
 core/Lucy/Search/RangeMatcher.c            |  2 +-
 core/Lucy/Search/RequiredOptionalQuery.c   |  5 ++++-
 core/Lucy/Search/SeriesMatcher.c           |  6 +++---
 core/Lucy/Search/TermQuery.c               |  5 ++++-
 core/Lucy/Store/CompoundFileReader.c       |  5 ++++-
 core/Lucy/Store/InStream.c                 |  2 +-
 core/Lucy/Store/OutStream.c                |  2 +-
 core/LucyX/Search/FilterMatcher.c          |  2 +-
 core/LucyX/Search/ProximityQuery.c         |  5 ++++-
 28 files changed, 82 insertions(+), 36 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Analysis/Inversion.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Analysis/Inversion.c b/core/Lucy/Analysis/Inversion.c
index da0704d..4ab1e22 100644
--- a/core/Lucy/Analysis/Inversion.c
+++ b/core/Lucy/Analysis/Inversion.c
@@ -42,7 +42,7 @@ Inversion_new(Token *seed_token) {
 
     // Process the seed token.
     if (seed_token != NULL) {
-        Inversion_append(self, (Token*)INCREF(seed_token));
+        Inversion_Append(self, (Token*)INCREF(seed_token));
     }
 
     return self;

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Document/HitDoc.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Document/HitDoc.c b/core/Lucy/Document/HitDoc.c
index a884772..973c7e2 100644
--- a/core/Lucy/Document/HitDoc.c
+++ b/core/Lucy/Document/HitDoc.c
@@ -90,7 +90,9 @@ bool
 HitDoc_Equals_IMP(HitDoc *self, Obj *other) {
     if ((HitDoc*)other == self)           { return true;  }
     if (!Obj_Is_A(other, HITDOC))         { return false; }
-    if (!Doc_equals((Doc*)self, other))   { return false; }
+    HitDoc_Equals_t super_equals
+        = (HitDoc_Equals_t)SUPER_METHOD_PTR(HITDOC, Lucy_HitDoc_Equals);
+    if (!super_equals(self, other))       { return false; }
     HitDocIVARS *const ivars = HitDoc_IVARS(self);
     HitDocIVARS *const ovars = HitDoc_IVARS((HitDoc*)other);
     if (ivars->score != ovars->score)     { return false; }

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Highlight/Highlighter.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Highlight/Highlighter.c b/core/Lucy/Highlight/Highlighter.c
index 71ecc46..d07df31 100644
--- a/core/Lucy/Highlight/Highlighter.c
+++ b/core/Lucy/Highlight/Highlighter.c
@@ -183,7 +183,7 @@ Highlighter_Create_Excerpt_IMP(Highlighter *self, HitDoc *hit_doc) {
         top = Highlighter_Raw_Excerpt(self, (CharBuf*)field_val,
                                       (CharBuf*)fragment, raw_excerpt, top,
                                       heat_map, sentences);
-        Highlighter_highlight_excerpt(self, score_spans, raw_excerpt,
+        Highlighter_Highlight_Excerpt(self, score_spans, raw_excerpt,
                                       highlighted, top);
 
         DECREF(sentences);

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Index/DeletionsWriter.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/DeletionsWriter.c b/core/Lucy/Index/DeletionsWriter.c
index a7874e5..89e9807 100644
--- a/core/Lucy/Index/DeletionsWriter.c
+++ b/core/Lucy/Index/DeletionsWriter.c
@@ -175,7 +175,10 @@ DefDelWriter_Finish_IMP(DefaultDeletionsWriter *self) {
 Hash*
 DefDelWriter_Metadata_IMP(DefaultDeletionsWriter *self) {
     DefaultDeletionsWriterIVARS *const ivars = DefDelWriter_IVARS(self);
-    Hash    *const metadata = DataWriter_metadata((DataWriter*)self);
+    DefDelWriter_Metadata_t super_meta
+        = (DefDelWriter_Metadata_t)SUPER_METHOD_PTR(DEFAULTDELETIONSWRITER,
+                                                    Lucy_DefDelWriter_Metadata);
+    Hash    *const metadata = super_meta(self);
     Hash    *const files    = Hash_new(0);
 
     for (uint32_t i = 0, max = VA_Get_Size(ivars->seg_readers); i < max; i++) {

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Index/LexiconWriter.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/LexiconWriter.c b/core/Lucy/Index/LexiconWriter.c
index 39851b4..cd122ec 100644
--- a/core/Lucy/Index/LexiconWriter.c
+++ b/core/Lucy/Index/LexiconWriter.c
@@ -234,7 +234,10 @@ LexWriter_Finish_IMP(LexiconWriter *self) {
 Hash*
 LexWriter_Metadata_IMP(LexiconWriter *self) {
     LexiconWriterIVARS *const ivars = LexWriter_IVARS(self);
-    Hash *const metadata  = DataWriter_metadata((DataWriter*)self);
+    LexWriter_Metadata_t super_meta
+        = (LexWriter_Metadata_t)SUPER_METHOD_PTR(LEXICONWRITER,
+                                                 Lucy_LexWriter_Metadata);
+    Hash *const metadata  = super_meta(self);
     Hash *const counts    = (Hash*)INCREF(ivars->counts);
     Hash *const ix_counts = (Hash*)INCREF(ivars->ix_counts);
 

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Index/SortWriter.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/SortWriter.c b/core/Lucy/Index/SortWriter.c
index c20fbac..f7b0af1 100644
--- a/core/Lucy/Index/SortWriter.c
+++ b/core/Lucy/Index/SortWriter.c
@@ -255,7 +255,10 @@ SortWriter_Finish_IMP(SortWriter *self) {
 Hash*
 SortWriter_Metadata_IMP(SortWriter *self) {
     SortWriterIVARS *const ivars = SortWriter_IVARS(self);
-    Hash *const metadata  = DataWriter_metadata((DataWriter*)self);
+    SortWriter_Metadata_t super_meta
+        = (SortWriter_Metadata_t)SUPER_METHOD_PTR(SORTWRITER,
+                                                  Lucy_SortWriter_Metadata);
+    Hash *const metadata = super_meta(self);
     Hash_Store_Str(metadata, "counts", 6, INCREF(ivars->counts));
     Hash_Store_Str(metadata, "null_ords", 9, INCREF(ivars->null_ords));
     Hash_Store_Str(metadata, "ord_widths", 10, INCREF(ivars->ord_widths));

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Index/ZombieKeyedHash.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/ZombieKeyedHash.c b/core/Lucy/Index/ZombieKeyedHash.c
index 0e2f079..a909bec 100644
--- a/core/Lucy/Index/ZombieKeyedHash.c
+++ b/core/Lucy/Index/ZombieKeyedHash.c
@@ -48,14 +48,14 @@ ZKHash_Make_Key_IMP(ZombieKeyedHash *self, Obj *key, int32_t hash_sum) {
         case FType_TEXT: {
                 CharBuf *source = (CharBuf*)key;
                 size_t size = ZCB_size() + CB_Get_Size(source) + 1;
-                void *allocation = MemPool_grab(ivars->mem_pool, size);
+                void *allocation = MemPool_Grab(ivars->mem_pool, size);
                 retval = (Obj*)ZCB_newf(allocation, size, "%o", source);
             }
             break;
         case FType_INT32: {
                 size_t size = VTable_Get_Obj_Alloc_Size(INTEGER32);
                 Integer32 *copy
-                    = (Integer32*)MemPool_grab(ivars->mem_pool, size);
+                    = (Integer32*)MemPool_Grab(ivars->mem_pool, size);
                 VTable_Init_Obj(INTEGER32, copy);
                 Int32_init(copy, 0);
                 Int32_Mimic(copy, key);

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Plan/BlobType.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Plan/BlobType.c b/core/Lucy/Plan/BlobType.c
index e1c06e8..9b2f5e7 100644
--- a/core/Lucy/Plan/BlobType.c
+++ b/core/Lucy/Plan/BlobType.c
@@ -61,7 +61,9 @@ bool
 BlobType_Equals_IMP(BlobType *self, Obj *other) {
     if ((BlobType*)other == self)   { return true; }
     if (!Obj_Is_A(other, BLOBTYPE)) { return false; }
-    return FType_equals((FieldType*)self, other);
+    BlobType_Equals_t super_equals
+        = (BlobType_Equals_t)SUPER_METHOD_PTR(BLOBTYPE, Lucy_BlobType_Equals);
+    return super_equals(self, other);
 }
 
 Hash*

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Plan/FullTextType.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Plan/FullTextType.c b/core/Lucy/Plan/FullTextType.c
index d8cbfed..267fb91 100644
--- a/core/Lucy/Plan/FullTextType.c
+++ b/core/Lucy/Plan/FullTextType.c
@@ -65,7 +65,10 @@ FullTextType_Equals_IMP(FullTextType *self, Obj *other) {
     if (!Obj_Is_A(other, FULLTEXTTYPE))                   { return false; }
     FullTextTypeIVARS *const ivars = FullTextType_IVARS(self);
     FullTextTypeIVARS *const ovars = FullTextType_IVARS((FullTextType*)other);
-    if (!FType_equals((FieldType*)self, other))           { return false; }
+    FullTextType_Equals_t super_equals
+        = (FullTextType_Equals_t)SUPER_METHOD_PTR(FULLTEXTTYPE,
+                                                  Lucy_FullTextType_Equals);
+    if (!super_equals(self, other))                       { return false; }
     if (!!ivars->sortable      != !!ovars->sortable)      { return false; }
     if (!!ivars->highlightable != !!ovars->highlightable) { return false; }
     if (!Analyzer_Equals(ivars->analyzer, (Obj*)ovars->analyzer)) {

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Plan/StringType.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Plan/StringType.c b/core/Lucy/Plan/StringType.c
index 8eb183b..359a0ba 100644
--- a/core/Lucy/Plan/StringType.c
+++ b/core/Lucy/Plan/StringType.c
@@ -46,8 +46,11 @@ StringType_init2(StringType *self, float boost, bool indexed,
 
 bool
 StringType_Equals_IMP(StringType *self, Obj *other) {
-    if ((StringType*)other == self)             { return true; }
-    if (!FType_equals((FieldType*)self, other)) { return false; }
+    if ((StringType*)other == self) { return true; }
+    StringType_Equals_t super_equals
+        = (StringType_Equals_t)SUPER_METHOD_PTR(STRINGTYPE,
+                                                Lucy_StringType_Equals);
+    if (!super_equals(self, other)) { return false; }
     return true;
 }
 

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Plan/TextType.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Plan/TextType.c b/core/Lucy/Plan/TextType.c
index 4dbd929..599673a 100644
--- a/core/Lucy/Plan/TextType.c
+++ b/core/Lucy/Plan/TextType.c
@@ -24,19 +24,19 @@
 #include "Clownfish/Util/StringHelper.h"
 
 CharBuf*
-TextType_make_blank(TextType *self) {
+TextType_Make_Blank_IMP(TextType *self) {
     UNUSED_VAR(self);
     return CB_new(0);
 }
 
 TermStepper*
-TextType_make_term_stepper(TextType *self) {
+TextType_Make_Term_Stepper_IMP(TextType *self) {
     UNUSED_VAR(self);
     return (TermStepper*)TextTermStepper_new();
 }
 
 int8_t
-TextType_primitive_id(TextType *self) {
+TextType_Primitive_ID_IMP(TextType *self) {
     UNUSED_VAR(self);
     return FType_TEXT;
 }

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Search/ANDQuery.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/ANDQuery.c b/core/Lucy/Search/ANDQuery.c
index b258662..fc6df36 100644
--- a/core/Lucy/Search/ANDQuery.c
+++ b/core/Lucy/Search/ANDQuery.c
@@ -68,7 +68,9 @@ bool
 ANDQuery_Equals_IMP(ANDQuery *self, Obj *other) {
     if ((ANDQuery*)other == self)   { return true; }
     if (!Obj_Is_A(other, ANDQUERY)) { return false; }
-    return PolyQuery_equals((PolyQuery*)self, other);
+    ANDQuery_Equals_t super_equals
+        = (ANDQuery_Equals_t)SUPER_METHOD_PTR(ANDQUERY, Lucy_ANDQuery_Equals);
+    return super_equals(self, other);
 }
 
 Compiler*

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Search/Collector/SortCollector.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/Collector/SortCollector.c b/core/Lucy/Search/Collector/SortCollector.c
index 3a6d4b6..65b2238 100644
--- a/core/Lucy/Search/Collector/SortCollector.c
+++ b/core/Lucy/Search/Collector/SortCollector.c
@@ -250,7 +250,10 @@ SortColl_Set_Reader_IMP(SortCollector *self, SegReader *reader) {
         }
     }
     ivars->seg_doc_max = reader ? SegReader_Doc_Max(reader) : 0;
-    Coll_set_reader((Collector*)self, reader);
+    SortColl_Set_Reader_t super_set_reader
+        = (SortColl_Set_Reader_t)SUPER_METHOD_PTR(SORTCOLLECTOR,
+                                                  Lucy_SortColl_Set_Reader);
+    super_set_reader(self, reader);
 }
 
 VArray*

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Search/MatchAllMatcher.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/MatchAllMatcher.c b/core/Lucy/Search/MatchAllMatcher.c
index 1a738a7..30f8263 100644
--- a/core/Lucy/Search/MatchAllMatcher.c
+++ b/core/Lucy/Search/MatchAllMatcher.c
@@ -51,7 +51,7 @@ MatchAllMatcher_Next_IMP(MatchAllMatcher* self) {
 int32_t
 MatchAllMatcher_Advance_IMP(MatchAllMatcher* self, int32_t target) {
     MatchAllMatcher_IVARS(self)->doc_id = target - 1;
-    return MatchAllMatcher_next(self);
+    return MatchAllMatcher_Next_IMP(self);
 }
 
 float

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Search/NOTMatcher.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/NOTMatcher.c b/core/Lucy/Search/NOTMatcher.c
index 0f9ee8e..022a8a5 100644
--- a/core/Lucy/Search/NOTMatcher.c
+++ b/core/Lucy/Search/NOTMatcher.c
@@ -85,7 +85,7 @@ NOTMatcher_Next_IMP(NOTMatcher *self) {
 int32_t
 NOTMatcher_Advance_IMP(NOTMatcher *self, int32_t target) {
     NOTMatcher_IVARS(self)->doc_id = target - 1;
-    return NOTMatcher_next(self);
+    return NOTMatcher_Next_IMP(self);
 }
 
 int32_t

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Search/NOTQuery.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/NOTQuery.c b/core/Lucy/Search/NOTQuery.c
index f727017..5f7832c 100644
--- a/core/Lucy/Search/NOTQuery.c
+++ b/core/Lucy/Search/NOTQuery.c
@@ -37,7 +37,7 @@ NOTQuery*
 NOTQuery_init(NOTQuery *self, Query *negated_query) {
     self = (NOTQuery*)PolyQuery_init((PolyQuery*)self, NULL);
     NOTQuery_Set_Boost(self, 0.0f);
-    PolyQuery_add_child((PolyQuery*)self, negated_query);
+    NOTQuery_Add_Child(self, negated_query);
     return self;
 }
 
@@ -66,7 +66,9 @@ bool
 NOTQuery_Equals_IMP(NOTQuery *self, Obj *other) {
     if ((NOTQuery*)other == self)   { return true; }
     if (!Obj_Is_A(other, NOTQUERY)) { return false; }
-    return PolyQuery_equals((PolyQuery*)self, other);
+    NOTQuery_Equals_t super_equals
+        = (NOTQuery_Equals_t)SUPER_METHOD_PTR(NOTQUERY, Lucy_NOTQuery_Equals);
+    return super_equals(self, other);
 }
 
 Compiler*

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Search/ORMatcher.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/ORMatcher.c b/core/Lucy/Search/ORMatcher.c
index 38bfac1..d37360f 100644
--- a/core/Lucy/Search/ORMatcher.c
+++ b/core/Lucy/Search/ORMatcher.c
@@ -307,7 +307,7 @@ ORScorer_init(ORScorer *self, VArray *children, Similarity *sim) {
 
     // Establish the state of all child matchers being past the current doc
     // id, by invoking ORMatcher's Next() method.
-    ORMatcher_next((ORMatcher*)self);
+    ORMatcher_Next_IMP((ORMatcher*)self);
 
     return self;
 }

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Search/ORQuery.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/ORQuery.c b/core/Lucy/Search/ORQuery.c
index 8d30b21..10f59e8 100644
--- a/core/Lucy/Search/ORQuery.c
+++ b/core/Lucy/Search/ORQuery.c
@@ -51,7 +51,9 @@ bool
 ORQuery_Equals_IMP(ORQuery *self, Obj *other) {
     if ((ORQuery*)other == self)   { return true;  }
     if (!Obj_Is_A(other, ORQUERY)) { return false; }
-    return PolyQuery_equals((PolyQuery*)self, other);
+    ORQuery_Equals_t super_equals
+        = (ORQuery_Equals_t)SUPER_METHOD_PTR(ORQUERY, Lucy_ORQuery_Equals);
+    return super_equals(self, other);
 }
 
 CharBuf*

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Search/PhraseQuery.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/PhraseQuery.c b/core/Lucy/Search/PhraseQuery.c
index 2224e74..d049559 100644
--- a/core/Lucy/Search/PhraseQuery.c
+++ b/core/Lucy/Search/PhraseQuery.c
@@ -229,7 +229,10 @@ PhraseCompiler_init(PhraseCompiler *self, PhraseQuery *parent,
 void
 PhraseCompiler_Serialize_IMP(PhraseCompiler *self, OutStream *outstream) {
     PhraseCompilerIVARS *const ivars = PhraseCompiler_IVARS(self);
-    Compiler_serialize((Compiler*)self, outstream);
+    PhraseCompiler_Serialize_t super_serialize
+        = (PhraseCompiler_Serialize_t)SUPER_METHOD_PTR(PHRASECOMPILER,
+                                                       Lucy_PhraseCompiler_Serialize);
+    super_serialize(self, outstream);
     OutStream_Write_F32(outstream, ivars->idf);
     OutStream_Write_F32(outstream, ivars->raw_weight);
     OutStream_Write_F32(outstream, ivars->query_norm_factor);
@@ -252,7 +255,10 @@ PhraseCompiler_Deserialize_IMP(PhraseCompiler *self, InStream *instream) {
 bool
 PhraseCompiler_Equals_IMP(PhraseCompiler *self, Obj *other) {
     if (!Obj_Is_A(other, PHRASECOMPILER))                     { return false; }
-    if (!Compiler_equals((Compiler*)self, other))             { return false; }
+    PhraseCompiler_Equals_t super_equals
+        = (PhraseCompiler_Equals_t)SUPER_METHOD_PTR(PHRASECOMPILER,
+                                                    Lucy_PhraseCompiler_Equals);
+    if (!super_equals(self, other))                           { return false; }
     PhraseCompilerIVARS *const ivars = PhraseCompiler_IVARS(self);
     PhraseCompilerIVARS *const ovars
         = PhraseCompiler_IVARS((PhraseCompiler*)other);

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Search/RangeMatcher.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/RangeMatcher.c b/core/Lucy/Search/RangeMatcher.c
index c2b9ac1..11d6b01 100644
--- a/core/Lucy/Search/RangeMatcher.c
+++ b/core/Lucy/Search/RangeMatcher.c
@@ -80,7 +80,7 @@ RangeMatcher_Next_IMP(RangeMatcher* self) {
 int32_t
 RangeMatcher_Advance_IMP(RangeMatcher* self, int32_t target) {
     RangeMatcher_IVARS(self)->doc_id = target - 1;
-    return RangeMatcher_next(self);
+    return RangeMatcher_Next_IMP(self);
 }
 
 float

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Search/RequiredOptionalQuery.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/RequiredOptionalQuery.c b/core/Lucy/Search/RequiredOptionalQuery.c
index 1cf03d9..ef666b2 100644
--- a/core/Lucy/Search/RequiredOptionalQuery.c
+++ b/core/Lucy/Search/RequiredOptionalQuery.c
@@ -83,7 +83,10 @@ bool
 ReqOptQuery_Equals_IMP(RequiredOptionalQuery *self, Obj *other) {
     if ((RequiredOptionalQuery*)other == self)   { return true;  }
     if (!Obj_Is_A(other, REQUIREDOPTIONALQUERY)) { return false; }
-    return PolyQuery_equals((PolyQuery*)self, other);
+    ReqOptQuery_Equals_t super_equals
+        = (ReqOptQuery_Equals_t)SUPER_METHOD_PTR(REQUIREDOPTIONALQUERY,
+                                                 Lucy_ReqOptQuery_Equals);
+    return super_equals(self, other);
 }
 
 Compiler*

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Search/SeriesMatcher.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/SeriesMatcher.c b/core/Lucy/Search/SeriesMatcher.c
index 3d67af2..55cfe02 100644
--- a/core/Lucy/Search/SeriesMatcher.c
+++ b/core/Lucy/Search/SeriesMatcher.c
@@ -58,7 +58,7 @@ SeriesMatcher_Destroy_IMP(SeriesMatcher *self) {
 int32_t
 SeriesMatcher_Next_IMP(SeriesMatcher *self) {
     SeriesMatcherIVARS *const ivars = SeriesMatcher_IVARS(self);
-    return SeriesMatcher_advance(self, ivars->doc_id + 1);
+    return SeriesMatcher_Advance_IMP(self, ivars->doc_id + 1);
 }
 
 int32_t
@@ -84,7 +84,7 @@ SeriesMatcher_Advance_IMP(SeriesMatcher *self, int32_t target) {
                     break;
                 }
             }
-            return SeriesMatcher_advance(self, target); // Recurse.
+            return SeriesMatcher_Advance(self, target); // Recurse.
         }
         else {
             // We're done.
@@ -102,7 +102,7 @@ SeriesMatcher_Advance_IMP(SeriesMatcher *self, int32_t target) {
         }
         else {
             // Recurse.
-            return SeriesMatcher_advance(self, ivars->next_offset);
+            return SeriesMatcher_Advance(self, ivars->next_offset);
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Search/TermQuery.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/TermQuery.c b/core/Lucy/Search/TermQuery.c
index 8741e18..43549c3 100644
--- a/core/Lucy/Search/TermQuery.c
+++ b/core/Lucy/Search/TermQuery.c
@@ -189,7 +189,10 @@ TermCompiler_init(TermCompiler *self, Query *parent, Searcher *searcher,
 
 bool
 TermCompiler_Equals_IMP(TermCompiler *self, Obj *other) {
-    if (!Compiler_equals((Compiler*)self, other))             { return false; }
+    TermCompiler_Equals_t super_equals
+        = (TermCompiler_Equals_t)SUPER_METHOD_PTR(TERMCOMPILER,
+                                                  Lucy_TermCompiler_Equals);
+    if (!super_equals(self, other))                           { return false; }
     if (!Obj_Is_A(other, TERMCOMPILER))                       { return false; }
     TermCompilerIVARS *const ivars = TermCompiler_IVARS(self);
     TermCompilerIVARS *const ovars = TermCompiler_IVARS((TermCompiler*)other);

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Store/CompoundFileReader.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Store/CompoundFileReader.c b/core/Lucy/Store/CompoundFileReader.c
index 61415aa..9161644 100644
--- a/core/Lucy/Store/CompoundFileReader.c
+++ b/core/Lucy/Store/CompoundFileReader.c
@@ -126,7 +126,10 @@ void
 CFReader_Set_Path_IMP(CompoundFileReader *self, const CharBuf *path) {
     CompoundFileReaderIVARS *const ivars = CFReader_IVARS(self);
     Folder_Set_Path(ivars->real_folder, path);
-    Folder_set_path((Folder*)self, path);
+    CFReader_Set_Path_t super_set_path
+        = (CFReader_Set_Path_t)SUPER_METHOD_PTR(COMPOUNDFILEREADER,
+                                                Lucy_CFReader_Set_Path);
+    super_set_path(self, path);
 }
 
 FileHandle*

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Store/InStream.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Store/InStream.c b/core/Lucy/Store/InStream.c
index 428f264..174414f 100644
--- a/core/Lucy/Store/InStream.c
+++ b/core/Lucy/Store/InStream.c
@@ -372,7 +372,7 @@ SI_read_bytes(InStream *self, char* buf, size_t len) {
             if (!success) {
                 RETHROW(INCREF(Err_get_error()));
             }
-            InStream_seek(self, sub_file_pos + len);
+            InStream_Seek_IMP(self, sub_file_pos + len);
         }
     }
 }

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/Lucy/Store/OutStream.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Store/OutStream.c b/core/Lucy/Store/OutStream.c
index 237d783..feba886 100644
--- a/core/Lucy/Store/OutStream.c
+++ b/core/Lucy/Store/OutStream.c
@@ -168,7 +168,7 @@ S_flush(OutStream *self, OutStreamIVARS *ivars) {
 
 int64_t
 OutStream_Length_IMP(OutStream *self) {
-    return OutStream_tell(self);
+    return OutStream_Tell_IMP(self);
 }
 
 void

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/LucyX/Search/FilterMatcher.c
----------------------------------------------------------------------
diff --git a/core/LucyX/Search/FilterMatcher.c b/core/LucyX/Search/FilterMatcher.c
index 2d75916..0de0c89 100644
--- a/core/LucyX/Search/FilterMatcher.c
+++ b/core/LucyX/Search/FilterMatcher.c
@@ -62,7 +62,7 @@ FilterMatcher_Next_IMP(FilterMatcher* self) {
 int32_t
 FilterMatcher_Skip_To_IMP(FilterMatcher* self, int32_t target) {
     FilterMatcher_IVARS(self)->doc_id = target - 1;
-    return FilterMatcher_next(self);
+    return FilterMatcher_Next_IMP(self);
 }
 
 float

http://git-wip-us.apache.org/repos/asf/lucy/blob/86952356/core/LucyX/Search/ProximityQuery.c
----------------------------------------------------------------------
diff --git a/core/LucyX/Search/ProximityQuery.c b/core/LucyX/Search/ProximityQuery.c
index 32d4c77..be63a40 100644
--- a/core/LucyX/Search/ProximityQuery.c
+++ b/core/LucyX/Search/ProximityQuery.c
@@ -280,7 +280,10 @@ bool
 ProximityCompiler_Equals_IMP(ProximityCompiler *self, Obj *other) {
     if ((ProximityCompiler*)other == self)        { return true; }
     if (!Obj_Is_A(other, PROXIMITYCOMPILER))      { return false; }
-    if (!Compiler_equals((Compiler*)self, other)) { return false; }
+    ProximityCompiler_Equals_t super_equals
+        = (ProximityCompiler_Equals_t)SUPER_METHOD_PTR(PROXIMITYCOMPILER,
+                                                       Lucy_ProximityCompiler_Equals);
+    if (!super_equals(self, other)) { return false; }
     ProximityCompilerIVARS *const ivars = ProximityCompiler_IVARS(self);
     ProximityCompilerIVARS *const ovars
         = ProximityCompiler_IVARS((ProximityCompiler*)other);