lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [24/50] [abbrv] git commit: refs/heads/master - Replace *_Dec_RefCount with DECREF
Date Fri, 11 Oct 2013 13:32:02 GMT
Replace *_Dec_RefCount with DECREF


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

Branch: refs/heads/master
Commit: 5d56059699e5f73bd8892075f85d27ab3aee5a02
Parents: fbcf77c
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Fri May 10 18:51:46 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Fri Oct 11 15:28:17 2013 +0200

----------------------------------------------------------------------
 core/Lucy/Index/Snapshot.c                   | 2 +-
 core/Lucy/Index/SortCache/NumericSortCache.c | 4 ++--
 core/Lucy/Index/SortCache/TextSortCache.c    | 6 +++---
 core/Lucy/Index/SortReader.c                 | 8 ++++----
 core/Lucy/Search/PolyQuery.c                 | 2 +-
 core/Lucy/Store/CompoundFileReader.c         | 4 ++--
 core/Lucy/Store/RAMDirHandle.c               | 4 ++--
 7 files changed, 15 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/5d560596/core/Lucy/Index/Snapshot.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/Snapshot.c b/core/Lucy/Index/Snapshot.c
index a8b2afe..fd9f546 100644
--- a/core/Lucy/Index/Snapshot.c
+++ b/core/Lucy/Index/Snapshot.c
@@ -70,7 +70,7 @@ Snapshot_Delete_Entry_IMP(Snapshot *self, const String *entry) {
     SnapshotIVARS *const ivars = Snapshot_IVARS(self);
     Obj *val = Hash_Delete(ivars->entries, (Obj*)entry);
     if (val) {
-        Obj_Dec_RefCount(val);
+        DECREF(val);
         return true;
     }
     else {

http://git-wip-us.apache.org/repos/asf/lucy/blob/5d560596/core/Lucy/Index/SortCache/NumericSortCache.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/SortCache/NumericSortCache.c b/core/Lucy/Index/SortCache/NumericSortCache.c
index 7241e6f..fe35359 100644
--- a/core/Lucy/Index/SortCache/NumericSortCache.c
+++ b/core/Lucy/Index/SortCache/NumericSortCache.c
@@ -70,11 +70,11 @@ NumSortCache_Destroy_IMP(NumericSortCache *self) {
     NumericSortCacheIVARS *const ivars = NumSortCache_IVARS(self);
     if (ivars->ord_in) {
         InStream_Close(ivars->ord_in);
-        InStream_Dec_RefCount(ivars->ord_in);
+        DECREF(ivars->ord_in);
     }
     if (ivars->dat_in) {
         InStream_Close(ivars->dat_in);
-        InStream_Dec_RefCount(ivars->dat_in);
+        DECREF(ivars->dat_in);
     }
     SUPER_DESTROY(self, NUMERICSORTCACHE);
 }

http://git-wip-us.apache.org/repos/asf/lucy/blob/5d560596/core/Lucy/Index/SortCache/TextSortCache.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/SortCache/TextSortCache.c b/core/Lucy/Index/SortCache/TextSortCache.c
index ad533a4..b96c49f 100644
--- a/core/Lucy/Index/SortCache/TextSortCache.c
+++ b/core/Lucy/Index/SortCache/TextSortCache.c
@@ -73,15 +73,15 @@ TextSortCache_Destroy_IMP(TextSortCache *self) {
     TextSortCacheIVARS *const ivars = TextSortCache_IVARS(self);
     if (ivars->ord_in) {
         InStream_Close(ivars->ord_in);
-        InStream_Dec_RefCount(ivars->ord_in);
+        DECREF(ivars->ord_in);
     }
     if (ivars->ix_in) {
         InStream_Close(ivars->ix_in);
-        InStream_Dec_RefCount(ivars->ix_in);
+        DECREF(ivars->ix_in);
     }
     if (ivars->dat_in) {
         InStream_Close(ivars->dat_in);
-        InStream_Dec_RefCount(ivars->dat_in);
+        DECREF(ivars->dat_in);
     }
     SUPER_DESTROY(self, TEXTSORTCACHE);
 }

http://git-wip-us.apache.org/repos/asf/lucy/blob/5d560596/core/Lucy/Index/SortReader.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/SortReader.c b/core/Lucy/Index/SortReader.c
index 2958422..28b55f0 100644
--- a/core/Lucy/Index/SortReader.c
+++ b/core/Lucy/Index/SortReader.c
@@ -118,19 +118,19 @@ void
 DefSortReader_Close_IMP(DefaultSortReader *self) {
     DefaultSortReaderIVARS *const ivars = DefSortReader_IVARS(self);
     if (ivars->caches) {
-        Hash_Dec_RefCount(ivars->caches);
+        DECREF(ivars->caches);
         ivars->caches = NULL;
     }
     if (ivars->counts) {
-        Hash_Dec_RefCount(ivars->counts);
+        DECREF(ivars->counts);
         ivars->counts = NULL;
     }
     if (ivars->null_ords) {
-        Hash_Dec_RefCount(ivars->null_ords);
+        DECREF(ivars->null_ords);
         ivars->null_ords = NULL;
     }
     if (ivars->ord_widths) {
-        Hash_Dec_RefCount(ivars->ord_widths);
+        DECREF(ivars->ord_widths);
         ivars->ord_widths = NULL;
     }
 }

http://git-wip-us.apache.org/repos/asf/lucy/blob/5d560596/core/Lucy/Search/PolyQuery.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/PolyQuery.c b/core/Lucy/Search/PolyQuery.c
index 8e85af9..6d74c35 100644
--- a/core/Lucy/Search/PolyQuery.c
+++ b/core/Lucy/Search/PolyQuery.c
@@ -194,7 +194,7 @@ PolyCompiler_Highlight_Spans_IMP(PolyCompiler *self, Searcher *searcher,
                                                        doc_vec, field);
         if (child_spans) {
             VA_Push_VArray(spans, child_spans);
-            VA_Dec_RefCount(child_spans);
+            DECREF(child_spans);
         }
     }
     return spans;

http://git-wip-us.apache.org/repos/asf/lucy/blob/5d560596/core/Lucy/Store/CompoundFileReader.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Store/CompoundFileReader.c b/core/Lucy/Store/CompoundFileReader.c
index 8ee59c7..86307c3 100644
--- a/core/Lucy/Store/CompoundFileReader.c
+++ b/core/Lucy/Store/CompoundFileReader.c
@@ -299,11 +299,11 @@ bool
 CFReaderDH_Close_IMP(CFReaderDirHandle *self) {
     CFReaderDirHandleIVARS *const ivars = CFReaderDH_IVARS(self);
     if (ivars->elems) {
-        VA_Dec_RefCount(ivars->elems);
+        DECREF(ivars->elems);
         ivars->elems = NULL;
     }
     if (ivars->cf_reader) {
-        CFReader_Dec_RefCount(ivars->cf_reader);
+        DECREF(ivars->cf_reader);
         ivars->cf_reader = NULL;
     }
     return true;

http://git-wip-us.apache.org/repos/asf/lucy/blob/5d560596/core/Lucy/Store/RAMDirHandle.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Store/RAMDirHandle.c b/core/Lucy/Store/RAMDirHandle.c
index 993f741..39caf05 100644
--- a/core/Lucy/Store/RAMDirHandle.c
+++ b/core/Lucy/Store/RAMDirHandle.c
@@ -42,11 +42,11 @@ bool
 RAMDH_Close_IMP(RAMDirHandle *self) {
     RAMDirHandleIVARS *const ivars = RAMDH_IVARS(self);
     if (ivars->elems) {
-        VA_Dec_RefCount(ivars->elems);
+        DECREF(ivars->elems);
         ivars->elems = NULL;
     }
     if (ivars->folder) {
-        RAMFolder_Dec_RefCount(ivars->folder);
+        DECREF(ivars->folder);
         ivars->folder = NULL;
     }
     return true;


Mime
View raw message