aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-01-13 12:39:00 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-01-13 12:39:00 -0800
commit1ee7cb0c0be1413f794c0e15003c2068016fb965 (patch)
tree598212e9a1df13f9161d4fe20ee5118c0adfa6fb /src
parent74768d3103107db02e3336c89ab5851e06fc8cf8 (diff)
parent52d4389009dedec185a8c07670d043b2e173f8d9 (diff)
Merge github.com:google/grpc into format
Diffstat (limited to 'src')
-rw-r--r--src/compiler/go_generator.cc4
-rw-r--r--src/compiler/go_generator.h2
-rwxr-xr-x[-rw-r--r--]src/ruby/bin/interop/interop_client.rb3
-rwxr-xr-x[-rw-r--r--]src/ruby/bin/interop/interop_server.rb4
-rwxr-xr-x[-rw-r--r--]src/ruby/bin/math_client.rb5
-rwxr-xr-x[-rw-r--r--]src/ruby/bin/math_server.rb4
-rwxr-xr-x[-rw-r--r--]src/ruby/bin/noproto_client.rb3
-rwxr-xr-x[-rw-r--r--]src/ruby/bin/noproto_server.rb3
8 files changed, 16 insertions, 12 deletions
diff --git a/src/compiler/go_generator.cc b/src/compiler/go_generator.cc
index 3873eae3bb..84aa27668e 100644
--- a/src/compiler/go_generator.cc
+++ b/src/compiler/go_generator.cc
@@ -31,8 +31,6 @@
*
*/
-using namespace std;
-
#include "src/compiler/go_generator.h"
#include <cctype>
@@ -42,6 +40,8 @@ using namespace std;
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/descriptor.h>
+using namespace std;
+
namespace grpc_go_generator {
bool NoStreaming(const google::protobuf::MethodDescriptor* method) {
diff --git a/src/compiler/go_generator.h b/src/compiler/go_generator.h
index fd5a05e537..5744345b56 100644
--- a/src/compiler/go_generator.h
+++ b/src/compiler/go_generator.h
@@ -44,7 +44,7 @@ class FileDescriptor;
namespace grpc_go_generator {
-string GetServices(const google::protobuf::FileDescriptor* file);
+std::string GetServices(const google::protobuf::FileDescriptor* file);
} // namespace grpc_go_generator
diff --git a/src/ruby/bin/interop/interop_client.rb b/src/ruby/bin/interop/interop_client.rb
index d0478bb4d1..718b0fdb83 100644..100755
--- a/src/ruby/bin/interop/interop_client.rb
+++ b/src/ruby/bin/interop/interop_client.rb
@@ -1,3 +1,5 @@
+#!/usr/bin/env ruby
+
# Copyright 2014, Google Inc.
# All rights reserved.
#
@@ -27,7 +29,6 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#!/usr/bin/env ruby
# interop_client is a testing tool that accesses a gRPC interop testing
# server and runs a test on it.
#
diff --git a/src/ruby/bin/interop/interop_server.rb b/src/ruby/bin/interop/interop_server.rb
index 53e271e80d..63071f3ec2 100644..100755
--- a/src/ruby/bin/interop/interop_server.rb
+++ b/src/ruby/bin/interop/interop_server.rb
@@ -1,3 +1,5 @@
+#!/usr/bin/env ruby
+
# Copyright 2014, Google Inc.
# All rights reserved.
#
@@ -27,8 +29,6 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#!/usr/bin/env ruby
-#
# interop_server is a Testing app that runs a gRPC interop testing server.
#
# It helps validate interoperation b/w gRPC in different environments
diff --git a/src/ruby/bin/math_client.rb b/src/ruby/bin/math_client.rb
index 5cba9317f4..4df333d085 100644..100755
--- a/src/ruby/bin/math_client.rb
+++ b/src/ruby/bin/math_client.rb
@@ -1,3 +1,5 @@
+#!/usr/bin/env ruby
+
# Copyright 2014, Google Inc.
# All rights reserved.
#
@@ -27,8 +29,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#!/usr/bin/env ruby
-#
+
# Sample app that accesses a Calc service running on a Ruby gRPC server and
# helps validate RpcServer as a gRPC server using proto2 serialization.
#
diff --git a/src/ruby/bin/math_server.rb b/src/ruby/bin/math_server.rb
index a0f301c3e7..0e47f71e66 100644..100755
--- a/src/ruby/bin/math_server.rb
+++ b/src/ruby/bin/math_server.rb
@@ -1,3 +1,5 @@
+#!/usr/bin/env ruby
+
# Copyright 2014, Google Inc.
# All rights reserved.
#
@@ -27,8 +29,6 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#!/usr/bin/env ruby
-#
# Sample gRPC Ruby server that implements the Math::Calc service and helps
# validate GRPC::RpcServer as GRPC implementation using proto2 serialization.
#
diff --git a/src/ruby/bin/noproto_client.rb b/src/ruby/bin/noproto_client.rb
index 50ae9fb68f..34bdf545ee 100644..100755
--- a/src/ruby/bin/noproto_client.rb
+++ b/src/ruby/bin/noproto_client.rb
@@ -1,3 +1,5 @@
+#!/usr/bin/env ruby
+
# Copyright 2014, Google Inc.
# All rights reserved.
#
@@ -27,7 +29,6 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#!/usr/bin/env ruby
# Sample app that helps validate RpcServer without protobuf serialization.
#
# Usage: $ ruby -S path/to/noproto_client.rb
diff --git a/src/ruby/bin/noproto_server.rb b/src/ruby/bin/noproto_server.rb
index d410827b22..1bdc192f02 100644..100755
--- a/src/ruby/bin/noproto_server.rb
+++ b/src/ruby/bin/noproto_server.rb
@@ -1,3 +1,5 @@
+#!/usr/bin/env ruby
+
# Copyright 2014, Google Inc.
# All rights reserved.
#
@@ -27,7 +29,6 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#!/usr/bin/env ruby
# Sample app that helps validate RpcServer without protobuf serialization.
#
# Usage: $ path/to/noproto_server.rb