diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2017-08-30 11:16:57 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2017-08-30 11:38:09 -0700 |
commit | f55c6ec24f8ac51c80d40f06732537a2d2aa3ab1 (patch) | |
tree | 2c4ac5adc8fa043b6838d36c01f0eb3cf05232cb /ruby/ext/google/protobuf_c/protobuf.h | |
parent | d6152dd51c833bae79208ee8c03bd6a1d21fe632 (diff) | |
download | protobuf-f55c6ec24f8ac51c80d40f06732537a2d2aa3ab1.tar.gz protobuf-f55c6ec24f8ac51c80d40f06732537a2d2aa3ab1.tar.bz2 protobuf-f55c6ec24f8ac51c80d40f06732537a2d2aa3ab1.zip |
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.h | 5 |
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; |