lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [11/15] git commit: refs/heads/cfish-string-prep1 - Replace Str_Inc_RefCount with INCREF
Date Sat, 14 Sep 2013 19:29:43 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/c798605f
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/c798605f
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/c798605f

Branch: refs/heads/cfish-string-prep1
Commit: c798605fadf478db1fa27b1040f3954e506778ab
Parents: 0008a99
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Fri May 10 18:42:05 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Sat Sep 14 20:29:46 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/c798605f/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/c798605f/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