You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2013/01/05 20:47:47 UTC

git commit: THRIFT-1814 Minor D library fixes fix a few tiny issues in the D library so that it compiles using the upcoming 2.061 DMD release

Updated Branches:
  refs/heads/master 1f554e1a9 -> e3f671034


THRIFT-1814 Minor D library fixes
fix a few tiny issues in the D library so that it compiles using the upcoming 2.061 DMD release

Patch: David Nadlinger


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

Branch: refs/heads/master
Commit: e3f671034cf48710bca775a58900988c0986e6d0
Parents: 1f554e1
Author: Roger Meier <ro...@apache.org>
Authored: Sat Jan 5 20:46:43 2013 +0100
Committer: Roger Meier <ro...@apache.org>
Committed: Sat Jan 5 20:46:43 2013 +0100

----------------------------------------------------------------------
 lib/d/src/thrift/codegen/base.d     |    2 +-
 lib/d/src/thrift/internal/codegen.d |    2 +-
 lib/d/test/transport_test.d         |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/e3f67103/lib/d/src/thrift/codegen/base.d
----------------------------------------------------------------------
diff --git a/lib/d/src/thrift/codegen/base.d b/lib/d/src/thrift/codegen/base.d
index d697375..95e09ff 100644
--- a/lib/d/src/thrift/codegen/base.d
+++ b/lib/d/src/thrift/codegen/base.d
@@ -913,7 +913,7 @@ unittest {
   // combinations. Functionality checks are covered by the rest of the test
   // suite.
 
-  struct Test {
+  static struct Test {
     // Non-nullable.
     int a1;
     int a2;

http://git-wip-us.apache.org/repos/asf/thrift/blob/e3f67103/lib/d/src/thrift/internal/codegen.d
----------------------------------------------------------------------
diff --git a/lib/d/src/thrift/internal/codegen.d b/lib/d/src/thrift/internal/codegen.d
index d6ce0a9..aae65bb 100644
--- a/lib/d/src/thrift/internal/codegen.d
+++ b/lib/d/src/thrift/internal/codegen.d
@@ -201,7 +201,7 @@ template AllMemberMethodNames(T) if (isService!T) {
   ) AllMemberMethodNames;
 }
 
-private template FilterMethodNames(T, MemberNames...) {
+template FilterMethodNames(T, MemberNames...) {
   alias StaticFilter!(
     CompilesAndTrue!(
       Compose!(isSomeFunction, TypeOf, PApply!(GetMember, T))

http://git-wip-us.apache.org/repos/asf/thrift/blob/e3f67103/lib/d/test/transport_test.d
----------------------------------------------------------------------
diff --git a/lib/d/test/transport_test.d b/lib/d/test/transport_test.d
index 3f61a5d..09bf6fd 100644
--- a/lib/d/test/transport_test.d
+++ b/lib/d/test/transport_test.d
@@ -669,7 +669,7 @@ void main(string[] args) {
   // each send() call.  If we have more than ~400 outstanding 1-byte write
   // requests, additional send() calls start blocking.
   testRw!CoupledSocketTransports(1024 * 16, 1, 1,
-          0, 0, 400);
+          0, 0, 250);
   testRw!CoupledSocketTransports(1024 * 256, 0, 0,
           rand4k, rand4k, socketMaxOutstanding);
   testRw!CoupledSocketTransports(1024 * 256, rand4k, rand4k,
@@ -677,7 +677,7 @@ void main(string[] args) {
   testRw!CoupledSocketTransports(1024 * 256, 167, 163,
           rand4k, rand4k, socketMaxOutstanding);
   testRw!CoupledSocketTransports(1024 * 16, 1, 1,
-          rand4k, rand4k, 400);
+          rand4k, rand4k, 250);
 
   testBlocking!CoupledSocketTransports();