lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [20/50] [abbrv] git commit: refs/heads/master - Replace Str_Inc_RefCount with INCREF
Date Fri, 11 Oct 2013 13:31:58 GMT
Replace Str_Inc_RefCount with INCREF


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

Branch: refs/heads/master
Commit: fbcf77cd54edac7b5caa4627d44f68353a2babc9
Parents: 180fccd
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Fri May 10 18:42:05 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Fri Oct 11 15:28:17 2013 +0200

----------------------------------------------------------------------
 clownfish/runtime/core/Clownfish/Num.c | 2 +-
 core/Lucy/Index/PolyReader.c           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/fbcf77cd/clownfish/runtime/core/Clownfish/Num.c
----------------------------------------------------------------------
diff --git a/clownfish/runtime/core/Clownfish/Num.c b/clownfish/runtime/core/Clownfish/Num.c
index f18bf76..cf38a86 100644
--- a/clownfish/runtime/core/Clownfish/Num.c
+++ b/clownfish/runtime/core/Clownfish/Num.c
@@ -375,7 +375,7 @@ Bool_Hash_Sum_IMP(BoolNum *self) {
 
 String*
 Bool_To_String_IMP(BoolNum *self) {
-    return (String*)Str_Inc_RefCount(self->string);
+    return (String*)INCREF(self->string);
 }
 
 bool

http://git-wip-us.apache.org/repos/asf/lucy/blob/fbcf77cd/core/Lucy/Index/PolyReader.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/PolyReader.c b/core/Lucy/Index/PolyReader.c
index 0446bcb..1dbc0b5 100644
--- a/core/Lucy/Index/PolyReader.c
+++ b/core/Lucy/Index/PolyReader.c
@@ -355,7 +355,7 @@ PolyReader_do_open(PolyReader *self, Obj *index, Snapshot *snapshot,
                 THROW(ERR, "Supplied snapshot objects must not be empty");
             }
             else {
-                Str_Inc_RefCount(target_snap_file);
+                target_snap_file = (String*)INCREF(target_snap_file);
             }
         }
         else {


Mime
View raw message