You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2015/05/12 16:14:33 UTC

[5/7] lucy-clownfish git commit: Mark many core types as `final`.

Mark many core types as `final`.

Blob, ByteBuf, CharBuf, Class, Hash, HashIterator, Method, Integer32,
Integer64, Float32, Float64, Vector.


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

Branch: refs/heads/master
Commit: ae54c4f69e422f189940331602f8a9b73557ae21
Parents: cb6f14b
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Fri May 8 19:27:49 2015 -0700
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Tue May 12 06:54:51 2015 -0700

----------------------------------------------------------------------
 runtime/core/Clownfish/Blob.cfh         | 2 +-
 runtime/core/Clownfish/ByteBuf.cfh      | 2 +-
 runtime/core/Clownfish/CharBuf.cfh      | 2 +-
 runtime/core/Clownfish/Class.cfh        | 2 +-
 runtime/core/Clownfish/Hash.cfh         | 2 +-
 runtime/core/Clownfish/HashIterator.cfh | 2 +-
 runtime/core/Clownfish/Method.cfh       | 2 +-
 runtime/core/Clownfish/Num.cfh          | 8 ++++----
 runtime/core/Clownfish/Vector.cfh       | 2 +-
 9 files changed, 12 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/ae54c4f6/runtime/core/Clownfish/Blob.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/Blob.cfh b/runtime/core/Clownfish/Blob.cfh
index 77a31ed..4f236e0 100644
--- a/runtime/core/Clownfish/Blob.cfh
+++ b/runtime/core/Clownfish/Blob.cfh
@@ -20,7 +20,7 @@ parcel Clownfish;
  * Immutable buffer holding arbitrary bytes.
  */
 
-class Clownfish::Blob inherits Clownfish::Obj {
+final class Clownfish::Blob inherits Clownfish::Obj {
 
     const char *buf;
     size_t      size;

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/ae54c4f6/runtime/core/Clownfish/ByteBuf.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/ByteBuf.cfh b/runtime/core/Clownfish/ByteBuf.cfh
index b5aa406..93e5a7c 100644
--- a/runtime/core/Clownfish/ByteBuf.cfh
+++ b/runtime/core/Clownfish/ByteBuf.cfh
@@ -20,7 +20,7 @@ parcel Clownfish;
  * Growable buffer holding arbitrary bytes.
  */
 
-class Clownfish::ByteBuf nickname BB inherits Clownfish::Obj {
+final class Clownfish::ByteBuf nickname BB inherits Clownfish::Obj {
 
     char    *buf;
     size_t   size;  /* number of valid bytes */

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/ae54c4f6/runtime/core/Clownfish/CharBuf.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/CharBuf.cfh b/runtime/core/Clownfish/CharBuf.cfh
index f8134e5..6e7cc56 100644
--- a/runtime/core/Clownfish/CharBuf.cfh
+++ b/runtime/core/Clownfish/CharBuf.cfh
@@ -20,7 +20,7 @@ parcel Clownfish;
  * Growable buffer holding Unicode characters.
  */
 
-class Clownfish::CharBuf nickname CB
+final class Clownfish::CharBuf nickname CB
     inherits Clownfish::Obj {
 
     char    *ptr;

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/ae54c4f6/runtime/core/Clownfish/Class.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/Class.cfh b/runtime/core/Clownfish/Class.cfh
index e333ebe..ff4e623 100644
--- a/runtime/core/Clownfish/Class.cfh
+++ b/runtime/core/Clownfish/Class.cfh
@@ -23,7 +23,7 @@ parcel Clownfish;
  * behavior of Classes.)
  */
 
-class Clownfish::Class inherits Clownfish::Obj {
+final class Clownfish::Class inherits Clownfish::Obj {
 
     Class              *parent;
     String             *name;

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/ae54c4f6/runtime/core/Clownfish/Hash.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/Hash.cfh b/runtime/core/Clownfish/Hash.cfh
index 8fe27e0..6217415 100644
--- a/runtime/core/Clownfish/Hash.cfh
+++ b/runtime/core/Clownfish/Hash.cfh
@@ -21,7 +21,7 @@ parcel Clownfish;
  *
  * Values are stored by reference and may be any kind of Obj.
  */
-public class Clownfish::Hash inherits Clownfish::Obj {
+public final class Clownfish::Hash inherits Clownfish::Obj {
 
     void   *entries;
     size_t  capacity;

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/ae54c4f6/runtime/core/Clownfish/HashIterator.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/HashIterator.cfh b/runtime/core/Clownfish/HashIterator.cfh
index f4dea3e..c346bb2 100644
--- a/runtime/core/Clownfish/HashIterator.cfh
+++ b/runtime/core/Clownfish/HashIterator.cfh
@@ -20,7 +20,7 @@ parcel Clownfish;
  * Hashtable Iterator.
  */
 
-class Clownfish::HashIterator nickname HashIter inherits Clownfish::Obj {
+final class Clownfish::HashIterator nickname HashIter inherits Clownfish::Obj {
     Hash   *hash;
     size_t  tick;
     size_t  capacity;

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/ae54c4f6/runtime/core/Clownfish/Method.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/Method.cfh b/runtime/core/Clownfish/Method.cfh
index e71a549..4fb4f28 100644
--- a/runtime/core/Clownfish/Method.cfh
+++ b/runtime/core/Clownfish/Method.cfh
@@ -19,7 +19,7 @@ parcel Clownfish;
 /** Method metadata.
  */
 
-class Clownfish::Method inherits Clownfish::Obj {
+final class Clownfish::Method inherits Clownfish::Obj {
 
     String         *name;
     String         *name_internal;

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/ae54c4f6/runtime/core/Clownfish/Num.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/Num.cfh b/runtime/core/Clownfish/Num.cfh
index f52ed18..8cf03fc 100644
--- a/runtime/core/Clownfish/Num.cfh
+++ b/runtime/core/Clownfish/Num.cfh
@@ -58,7 +58,7 @@ abstract class Clownfish::IntNum inherits Clownfish::Num {
 
 /** Single precision floating point number.
  */
-class Clownfish::Float32 inherits Clownfish::FloatNum {
+final class Clownfish::Float32 inherits Clownfish::FloatNum {
 
     float value;
 
@@ -92,7 +92,7 @@ class Clownfish::Float32 inherits Clownfish::FloatNum {
 
 /** Double precision floating point number.
  */
-class Clownfish::Float64 inherits Clownfish::FloatNum {
+final class Clownfish::Float64 inherits Clownfish::FloatNum {
 
     double value;
 
@@ -126,7 +126,7 @@ class Clownfish::Float64 inherits Clownfish::FloatNum {
 
 /** 32-bit signed integer.
  */
-class Clownfish::Integer32 nickname Int32
+final class Clownfish::Integer32 nickname Int32
     inherits Clownfish::IntNum {
 
     int32_t value;
@@ -162,7 +162,7 @@ class Clownfish::Integer32 nickname Int32
 /**
  * 64-bit signed integer.
  */
-class Clownfish::Integer64 nickname Int64
+final class Clownfish::Integer64 nickname Int64
     inherits Clownfish::IntNum {
 
     int64_t value;

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/ae54c4f6/runtime/core/Clownfish/Vector.cfh
----------------------------------------------------------------------
diff --git a/runtime/core/Clownfish/Vector.cfh b/runtime/core/Clownfish/Vector.cfh
index be2abc6..4034ebf 100644
--- a/runtime/core/Clownfish/Vector.cfh
+++ b/runtime/core/Clownfish/Vector.cfh
@@ -18,7 +18,7 @@ parcel Clownfish;
 
 /** Variable-sized array.
  */
-public class Clownfish::Vector nickname Vec inherits Clownfish::Obj {
+public final class Clownfish::Vector nickname Vec inherits Clownfish::Obj {
 
     Obj      **elems;
     size_t     size;