You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by br...@apache.org on 2009/02/03 20:18:57 UTC

svn commit: r740377 - /incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc

Author: bryanduxbury
Date: Tue Feb  3 19:18:57 2009
New Revision: 740377

URL: http://svn.apache.org/viewvc?rev=740377&view=rev
Log:
THRIFT-132. ruby: Ruby generator should use ::Thrift::Foo namespace form

All of the Thrift library includes now prefix with ::.

Modified:
    incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc

Modified: incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc
URL: http://svn.apache.org/viewvc/incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc?rev=740377&r1=740376&r2=740377&view=diff
==============================================================================
--- incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc (original)
+++ incubator/thrift/trunk/compiler/cpp/src/generate/t_rb_generator.cc Tue Feb  3 19:18:57 2009
@@ -466,7 +466,7 @@
   out << endl;
 
   indent_up();
-  indent(out) << "include Thrift::Struct" << endl;
+  indent(out) << "include ::Thrift::Struct" << endl;
 
   if (is_exception) {
     generate_rb_simple_exception_constructor(out, tstruct);
@@ -714,7 +714,7 @@
   indent_up();
 
   indent(f_service_) <<
-    "include Thrift::Client" << endl << endl;
+    "include ::Thrift::Client" << endl << endl;
 
   // Generate client method implementations
   vector<t_function*> functions = tservice->get_functions();
@@ -847,7 +847,7 @@
   indent_up();
 
   f_service_ <<
-    indent() << "include Thrift::Processor" << endl <<
+    indent() << "include ::Thrift::Processor" << endl <<
     endl;
 
   // Generate the process subfunctions