From 231886f6327b7cad480b96d08595f45b3526cb4a Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Tue, 19 May 2015 15:33:48 -0700 Subject: Ruby C extension speedup: don't re-intern constant string needlessly. Also fixed lines with > 80 char length. --- ruby/ext/google/protobuf_c/protobuf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ruby/ext/google/protobuf_c/protobuf.h') diff --git a/ruby/ext/google/protobuf_c/protobuf.h b/ruby/ext/google/protobuf_c/protobuf.h index 3d619617..f8667486 100644 --- a/ruby/ext/google/protobuf_c/protobuf.h +++ b/ruby/ext/google/protobuf_c/protobuf.h @@ -161,8 +161,6 @@ extern VALUE cOneofBuilderContext; extern VALUE cEnumBuilderContext; extern VALUE cBuilder; -extern const char* kDescriptorInstanceVar; - // We forward-declare all of the Ruby method implementations here because we // sometimes call the methods directly across .c files, rather than going // through Ruby's method dispatching (e.g. during message parse). It's cleaner @@ -530,4 +528,6 @@ void check_upb_status(const upb_status* status, const char* msg); check_upb_status(&status, msg); \ } while (0) +extern ID descriptor_instancevar_interned; + #endif // __GOOGLE_PROTOBUF_RUBY_PROTOBUF_H__ -- cgit v1.2.3