You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2016/02/06 15:17:35 UTC
[02/14] lucy-clownfish git commit: Harmonize name and default of
capacity params
Harmonize name and default of capacity params
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/fe854dd6
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/fe854dd6
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/fe854dd6
Branch: refs/heads/master
Commit: fe854dd69820e91e9d670a1b9a313326219f53a5
Parents: 39385c5
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Mon Jan 11 17:54:59 2016 +0100
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Wed Feb 3 15:24:28 2016 +0100
----------------------------------------------------------------------
runtime/core/Clownfish/ByteBuf.cfh | 6 +++---
runtime/core/Clownfish/CharBuf.cfh | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/fe854dd6/runtime/core/Clownfish/ByteBuf.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/ByteBuf.cfh b/runtime/core/Clownfish/ByteBuf.cfh
index 217d075..8e25d6c 100644
--- a/runtime/core/Clownfish/ByteBuf.cfh
+++ b/runtime/core/Clownfish/ByteBuf.cfh
@@ -30,10 +30,10 @@ public final class Clownfish::ByteBuf nickname BB inherits Clownfish::Obj {
* @param capacity initial capacity of the ByteBuf, in bytes.
*/
public inert incremented ByteBuf*
- new(size_t capacity);
+ new(size_t capacity = 0);
public inert ByteBuf*
- init(ByteBuf *self, size_t capacity);
+ init(ByteBuf *self, size_t capacity = 0);
/** Return a pointer to a new ByteBuf which holds a copy of the passed-in
* bytes.
@@ -98,7 +98,7 @@ public final class Clownfish::ByteBuf nickname BB inherits Clownfish::Obj {
* @return a pointer to the raw buffer.
*/
public nullable char*
- Grow(ByteBuf *self, size_t size);
+ Grow(ByteBuf *self, size_t capacity);
/** Return the content of the ByteBuf as Blob and clear the ByteBuf.
*/
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/fe854dd6/runtime/core/Clownfish/CharBuf.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/CharBuf.cfh b/runtime/core/Clownfish/CharBuf.cfh
index e8a2e60..20af51f 100644
--- a/runtime/core/Clownfish/CharBuf.cfh
+++ b/runtime/core/Clownfish/CharBuf.cfh
@@ -28,10 +28,10 @@ public final class Clownfish::CharBuf nickname CB
size_t cap; /* allocated bytes, including terminating null */
public inert incremented CharBuf*
- new(size_t size = 0);
+ new(size_t capacity = 0);
public inert CharBuf*
- init(CharBuf *self, size_t size = 0);
+ init(CharBuf *self, size_t capacity = 0);
/** Concatenate the passed-in string onto the end of the CharBuf.
*/
@@ -81,7 +81,7 @@ public final class Clownfish::CharBuf nickname CB
* allocation.
*/
public void
- Grow(CharBuf *self, size_t size);
+ Grow(CharBuf *self, size_t capacity);
/** Clear the CharBuf.
*/