aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby/ext/google/protobuf_c/protobuf.h
diff options
context:
space:
mode:
authorGravatar Aaron Patterson <aaron.patterson@gmail.com>2017-08-30 11:16:57 -0700
committerGravatar Bo Yang <teboring@google.com>2017-09-13 14:28:02 -0700
commita459b224b5fbc30c328715a06f95ca494f1e5d6a (patch)
tree0c56e7bbbc492fd888439c36d34187cfed53714e /ruby/ext/google/protobuf_c/protobuf.h
parentc1dd8e85a1314a7bcb2059b842c6830d854fbefa (diff)
Storing the frame on the map means we don't need the array
Diffstat (limited to 'ruby/ext/google/protobuf_c/protobuf.h')
-rw-r--r--ruby/ext/google/protobuf_c/protobuf.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/ruby/ext/google/protobuf_c/protobuf.h b/ruby/ext/google/protobuf_c/protobuf.h
index 8fd1bc64..f4b110fe 100644
--- a/ruby/ext/google/protobuf_c/protobuf.h
+++ b/ruby/ext/google/protobuf_c/protobuf.h
@@ -395,7 +395,7 @@ typedef struct {
upb_fieldtype_t key_type;
upb_fieldtype_t value_type;
VALUE value_type_class;
- VALUE parse_frames;
+ VALUE parse_frame;
upb_strtable table;
} Map;
@@ -404,8 +404,7 @@ void Map_free(void* self);
VALUE Map_alloc(VALUE klass);
VALUE Map_init(int argc, VALUE* argv, VALUE self);
void Map_register(VALUE module);
-VALUE Map_push_frame(VALUE self, VALUE val);
-VALUE Map_pop_frame(VALUE self);
+VALUE Map_set_frame(VALUE self, VALUE val);
extern const rb_data_type_t Map_type;
extern VALUE cMap;