lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [41/50] [abbrv] git commit: refs/heads/master - Convert 'const Obj' to 'Obj'
Date Fri, 11 Oct 2013 13:32:19 GMT
Convert 'const Obj' to 'Obj'


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

Branch: refs/heads/master
Commit: f3e6ed642f21af9b6bdb9b29dae8160cb3ef5abd
Parents: bb0fff5
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Mon Sep 30 22:46:48 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Fri Oct 11 15:28:21 2013 +0200

----------------------------------------------------------------------
 clownfish/runtime/core/Clownfish/Hash.c   | 10 +++++-----
 clownfish/runtime/core/Clownfish/Hash.cfh |  6 +++---
 core/Lucy/Search/TermQuery.c              |  4 ++--
 core/Lucy/Search/TermQuery.cfh            |  4 ++--
 4 files changed, 12 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/f3e6ed64/clownfish/runtime/core/Clownfish/Hash.c
----------------------------------------------------------------------
diff --git a/clownfish/runtime/core/Clownfish/Hash.c b/clownfish/runtime/core/Clownfish/Hash.c
index fd78864..ed6cb6f 100644
--- a/clownfish/runtime/core/Clownfish/Hash.c
+++ b/clownfish/runtime/core/Clownfish/Hash.c
@@ -48,7 +48,7 @@ SI_kill_iter(Hash *self);
 
 // Return the entry associated with the key, if any.
 static CFISH_INLINE HashEntry*
-SI_fetch_entry(Hash *self, const Obj *key, int32_t hash_sum);
+SI_fetch_entry(Hash *self, Obj *key, int32_t hash_sum);
 
 // Double the number of buckets and redistribute all entries.
 static CFISH_INLINE HashEntry*
@@ -179,7 +179,7 @@ Hash_Fetch_Utf8_IMP(Hash *self, const char *key, size_t key_len) {
 }
 
 static CFISH_INLINE HashEntry*
-SI_fetch_entry(Hash *self, const Obj *key, int32_t hash_sum) {
+SI_fetch_entry(Hash *self, Obj *key, int32_t hash_sum) {
     uint32_t tick = hash_sum;
     HashEntry *const entries = (HashEntry*)self->entries;
     HashEntry *entry;
@@ -201,13 +201,13 @@ SI_fetch_entry(Hash *self, const Obj *key, int32_t hash_sum) {
 }
 
 Obj*
-Hash_Fetch_IMP(Hash *self, const Obj *key) {
+Hash_Fetch_IMP(Hash *self, Obj *key) {
     HashEntry *entry = SI_fetch_entry(self, key, Obj_Hash_Sum(key));
     return entry ? entry->value : NULL;
 }
 
 Obj*
-Hash_Delete_IMP(Hash *self, const Obj *key) {
+Hash_Delete_IMP(Hash *self, Obj *key) {
     HashEntry *entry = SI_fetch_entry(self, key, Obj_Hash_Sum(key));
     if (entry) {
         Obj *value = entry->value;
@@ -265,7 +265,7 @@ Hash_Next_IMP(Hash *self, Obj **key, Obj **value) {
 }
 
 Obj*
-Hash_Find_Key_IMP(Hash *self, const Obj *key, int32_t hash_sum) {
+Hash_Find_Key_IMP(Hash *self, Obj *key, int32_t hash_sum) {
     HashEntry *entry = SI_fetch_entry(self, key, hash_sum);
     return entry ? entry->key : NULL;
 }

http://git-wip-us.apache.org/repos/asf/lucy/blob/f3e6ed64/clownfish/runtime/core/Clownfish/Hash.cfh
----------------------------------------------------------------------
diff --git a/clownfish/runtime/core/Clownfish/Hash.cfh b/clownfish/runtime/core/Clownfish/Hash.cfh
index 5f289fd..afa1904 100644
--- a/clownfish/runtime/core/Clownfish/Hash.cfh
+++ b/clownfish/runtime/core/Clownfish/Hash.cfh
@@ -65,7 +65,7 @@ class Clownfish::Hash inherits Clownfish::Obj {
      * @return the value, or NULL if <code>key</code> is not present.
      */
     nullable Obj*
-    Fetch(Hash *self, const Obj *key);
+    Fetch(Hash *self, Obj *key);
 
     nullable Obj*
     Fetch_Utf8(Hash *self, const char *key, size_t key_len);
@@ -76,7 +76,7 @@ class Clownfish::Hash inherits Clownfish::Obj {
      * succeeds; otherwise NULL.
      */
     incremented nullable Obj*
-    Delete(Hash *self, const Obj *key);
+    Delete(Hash *self, Obj *key);
 
     incremented nullable Obj*
     Delete_Utf8(Hash *self, const char *key, size_t key_ley);
@@ -101,7 +101,7 @@ class Clownfish::Hash inherits Clownfish::Obj {
      * rather than its value.
      */
     nullable Obj*
-    Find_Key(Hash *self, const Obj *key, int32_t hash_sum);
+    Find_Key(Hash *self, Obj *key, int32_t hash_sum);
 
     /** Return an VArray of pointers to the hash's keys.
      */

http://git-wip-us.apache.org/repos/asf/lucy/blob/f3e6ed64/core/Lucy/Search/TermQuery.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/TermQuery.c b/core/Lucy/Search/TermQuery.c
index 913d6a5..38db59a 100644
--- a/core/Lucy/Search/TermQuery.c
+++ b/core/Lucy/Search/TermQuery.c
@@ -35,13 +35,13 @@
 #include "Lucy/Util/Freezer.h"
 
 TermQuery*
-TermQuery_new(String *field, const Obj *term) {
+TermQuery_new(String *field, Obj *term) {
     TermQuery *self = (TermQuery*)VTable_Make_Obj(TERMQUERY);
     return TermQuery_init(self, field, term);
 }
 
 TermQuery*
-TermQuery_init(TermQuery *self, String *field, const Obj *term) {
+TermQuery_init(TermQuery *self, String *field, Obj *term) {
     Query_init((Query*)self, 1.0f);
     TermQueryIVARS *const ivars = TermQuery_IVARS(self);
     ivars->field  = Str_Clone(field);

http://git-wip-us.apache.org/repos/asf/lucy/blob/f3e6ed64/core/Lucy/Search/TermQuery.cfh
----------------------------------------------------------------------
diff --git a/core/Lucy/Search/TermQuery.cfh b/core/Lucy/Search/TermQuery.cfh
index a59b4c6..cbdd42c 100644
--- a/core/Lucy/Search/TermQuery.cfh
+++ b/core/Lucy/Search/TermQuery.cfh
@@ -29,14 +29,14 @@ public class Lucy::Search::TermQuery inherits Lucy::Search::Query {
     Obj    *term;
 
     inert incremented TermQuery*
-    new(String *field, const Obj *term);
+    new(String *field, Obj *term);
 
     /**
      * @param field Field name.
      * @param term Term text.
      */
     public inert TermQuery*
-    init(TermQuery *self, String *field, const Obj *term);
+    init(TermQuery *self, String *field, Obj *term);
 
     /** Accessor for object's <code>field</code> member.
      */


Mime
View raw message