THRIFT-1814 Minor D library fixes
authorRoger Meier <roger@apache.org>
Sat, 5 Jan 2013 19:46:43 +0000 (20:46 +0100)
committerRoger Meier <roger@apache.org>
Sat, 5 Jan 2013 19:46:43 +0000 (20:46 +0100)
fix a few tiny issues in the D library so that it compiles using the upcoming 2.061 DMD release

Patch: David Nadlinger

lib/d/src/thrift/codegen/base.d
lib/d/src/thrift/internal/codegen.d
lib/d/test/transport_test.d

index d697375..95e09ff 100644 (file)
@@ -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;
index d6ce0a9..aae65bb 100644 (file)
@@ -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))
index 3f61a5d..09bf6fd 100644 (file)
@@ -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();