Rename StupidHashCharBuf to StupidHashString
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/9beae4dc Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/9beae4dc Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/9beae4dc Branch: refs/heads/master Commit: 9beae4dc27ad358d3fc13d4314c3b0ec451f8e43 Parents: c9af487 Author: Nick Wellnhofer <[email protected]> Authored: Fri Apr 17 20:54:59 2015 +0200 Committer: Nick Wellnhofer <[email protected]> Committed: Fri Apr 17 20:54:59 2015 +0200 ---------------------------------------------------------------------- runtime/core/Clownfish/Test/TestLockFreeRegistry.c | 16 ++++++++-------- .../core/Clownfish/Test/TestLockFreeRegistry.cfh | 6 +++--- 2 files changed, 11 insertions(+), 11 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/9beae4dc/runtime/core/Clownfish/Test/TestLockFreeRegistry.c ---------------------------------------------------------------------- diff --git a/runtime/core/Clownfish/Test/TestLockFreeRegistry.c b/runtime/core/Clownfish/Test/TestLockFreeRegistry.c index 6e7f852..5f5855c 100644 --- a/runtime/core/Clownfish/Test/TestLockFreeRegistry.c +++ b/runtime/core/Clownfish/Test/TestLockFreeRegistry.c @@ -31,13 +31,13 @@ TestLFReg_new() { return (TestLockFreeRegistry*)Class_Make_Obj(TESTLOCKFREEREGISTRY); } -StupidHashCharBuf* -StupidHashCharBuf_new(const char *text) { - return (StupidHashCharBuf*)Str_new_from_utf8(text, strlen(text)); +StupidHashString* +StupidHashString_new(const char *text) { + return (StupidHashString*)Str_new_from_utf8(text, strlen(text)); } int32_t -StupidHashCharBuf_Hash_Sum_IMP(StupidHashCharBuf *self) { +StupidHashString_Hash_Sum_IMP(StupidHashString *self) { UNUSED_VAR(self); return 1; } @@ -45,10 +45,10 @@ StupidHashCharBuf_Hash_Sum_IMP(StupidHashCharBuf *self) { static void test_all(TestBatchRunner *runner) { LockFreeRegistry *registry = LFReg_new(10); - StupidHashCharBuf *foo = StupidHashCharBuf_new("foo"); - StupidHashCharBuf *bar = StupidHashCharBuf_new("bar"); - StupidHashCharBuf *baz = StupidHashCharBuf_new("baz"); - StupidHashCharBuf *foo_dupe = StupidHashCharBuf_new("foo"); + StupidHashString *foo = StupidHashString_new("foo"); + StupidHashString *bar = StupidHashString_new("bar"); + StupidHashString *baz = StupidHashString_new("baz"); + StupidHashString *foo_dupe = StupidHashString_new("foo"); TEST_TRUE(runner, LFReg_Register(registry, (String*)foo, (Obj*)foo), "Register() returns true on success"); http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/9beae4dc/runtime/core/Clownfish/Test/TestLockFreeRegistry.cfh ---------------------------------------------------------------------- diff --git a/runtime/core/Clownfish/Test/TestLockFreeRegistry.cfh b/runtime/core/Clownfish/Test/TestLockFreeRegistry.cfh index 4f8ae86..d7049c8 100644 --- a/runtime/core/Clownfish/Test/TestLockFreeRegistry.cfh +++ b/runtime/core/Clownfish/Test/TestLockFreeRegistry.cfh @@ -28,13 +28,13 @@ class Clownfish::Test::TestLockFreeRegistry nickname TestLFReg /** Private test-only class for stressing LockFreeRegistry. */ -class Clownfish::Test::StupidHashCharBuf inherits Clownfish::String { - inert incremented StupidHashCharBuf* +class Clownfish::Test::StupidHashString inherits Clownfish::String { + inert incremented StupidHashString* new(const char *text); /** Always returns 1, guaranteeing collisions. */ public int32_t - Hash_Sum(StupidHashCharBuf *self); + Hash_Sum(StupidHashString *self); }
