lucy-commits mailing list archives

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


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

Branch: refs/heads/master
Commit: 94697de53a9d80825ae18aeff1fe7a2beb6badff
Parents: f3e6ed6
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Mon Sep 30 23:12:56 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Fri Oct 11 15:28:21 2013 +0200

----------------------------------------------------------------------
 clownfish/runtime/core/Clownfish/ByteBuf.c   | 8 ++++----
 clownfish/runtime/core/Clownfish/ByteBuf.cfh | 4 ++--
 clownfish/runtime/perl/xs/XSBind.c           | 2 +-
 clownfish/runtime/perl/xs/XSBind.h           | 2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/94697de5/clownfish/runtime/core/Clownfish/ByteBuf.c
----------------------------------------------------------------------
diff --git a/clownfish/runtime/core/Clownfish/ByteBuf.c b/clownfish/runtime/core/Clownfish/ByteBuf.c
index ceb97ee..c267d28 100644
--- a/clownfish/runtime/core/Clownfish/ByteBuf.c
+++ b/clownfish/runtime/core/Clownfish/ByteBuf.c
@@ -172,7 +172,7 @@ BB_Cat_Bytes_IMP(ByteBuf *self, const void *bytes, size_t size) {
 }
 
 void
-BB_Cat_IMP(ByteBuf *self, const ByteBuf *other) {
+BB_Cat_IMP(ByteBuf *self, ByteBuf *other) {
     SI_cat_bytes(self, other->buf, other->size);
 }
 
@@ -198,8 +198,8 @@ BB_Grow_IMP(ByteBuf *self, size_t size) {
 
 int
 BB_compare(const void *va, const void *vb) {
-    const ByteBuf *a = *(const ByteBuf**)va;
-    const ByteBuf *b = *(const ByteBuf**)vb;
+    ByteBuf *a = *(ByteBuf**)va;
+    ByteBuf *b = *(ByteBuf**)vb;
     const size_t size = a->size < b->size ? a->size : b->size;
 
     int32_t comparison = memcmp(a->buf, b->buf, size);
@@ -246,7 +246,7 @@ ViewBB_Assign_Bytes_IMP(ViewByteBuf *self, char*buf, size_t size) {
 }
 
 void
-ViewBB_Assign_IMP(ViewByteBuf *self, const ByteBuf *other) {
+ViewBB_Assign_IMP(ViewByteBuf *self, ByteBuf *other) {
     self->buf  = other->buf;
     self->size = other->size;
 }

http://git-wip-us.apache.org/repos/asf/lucy/blob/94697de5/clownfish/runtime/core/Clownfish/ByteBuf.cfh
----------------------------------------------------------------------
diff --git a/clownfish/runtime/core/Clownfish/ByteBuf.cfh b/clownfish/runtime/core/Clownfish/ByteBuf.cfh
index 388e854..60b258c 100644
--- a/clownfish/runtime/core/Clownfish/ByteBuf.cfh
+++ b/clownfish/runtime/core/Clownfish/ByteBuf.cfh
@@ -96,7 +96,7 @@ class Clownfish::ByteBuf cnick BB inherits Clownfish::Obj {
      * original ByteBuf. Allocate more memory as needed.
      */
     void
-    Cat(ByteBuf *self, const ByteBuf *other);
+    Cat(ByteBuf *self, ByteBuf *other);
 
     /** Assign more memory to the ByteBuf, if it doesn't already have enough
      * room to hold <code>size</code> bytes.  Cannot shrink the allocation.
@@ -150,7 +150,7 @@ class Clownfish::ViewByteBuf cnick ViewBB
     /** Assign buf and size members from the passed-in ByteBuf.
      */
     void
-    Assign(ViewByteBuf *self, const ByteBuf *other);
+    Assign(ViewByteBuf *self, ByteBuf *other);
 
     public void
     Destroy(ViewByteBuf *self);

http://git-wip-us.apache.org/repos/asf/lucy/blob/94697de5/clownfish/runtime/perl/xs/XSBind.c
----------------------------------------------------------------------
diff --git a/clownfish/runtime/perl/xs/XSBind.c b/clownfish/runtime/perl/xs/XSBind.c
index 4a231cf..4c7a275 100644
--- a/clownfish/runtime/perl/xs/XSBind.c
+++ b/clownfish/runtime/perl/xs/XSBind.c
@@ -218,7 +218,7 @@ XSBind_perl_to_cfish(SV *sv) {
 }
 
 SV*
-XSBind_bb_to_sv(const cfish_ByteBuf *bb) {
+XSBind_bb_to_sv(cfish_ByteBuf *bb) {
     return bb
            ? newSVpvn(CFISH_BB_Get_Buf(bb), CFISH_BB_Get_Size(bb))
            : newSV(0);

http://git-wip-us.apache.org/repos/asf/lucy/blob/94697de5/clownfish/runtime/perl/xs/XSBind.h
----------------------------------------------------------------------
diff --git a/clownfish/runtime/perl/xs/XSBind.h b/clownfish/runtime/perl/xs/XSBind.h
index 01c6d6c..e37058c 100644
--- a/clownfish/runtime/perl/xs/XSBind.h
+++ b/clownfish/runtime/perl/xs/XSBind.h
@@ -128,7 +128,7 @@ cfish_XSBind_perl_to_cfish(SV *sv);
 /** Convert a ByteBuf into a new string SV.
  */
 CFISH_VISIBLE SV*
-cfish_XSBind_bb_to_sv(const cfish_ByteBuf *bb);
+cfish_XSBind_bb_to_sv(cfish_ByteBuf *bb);
 
 /** Convert a String into a new UTF-8 string SV.
  */


Mime
View raw message