Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(970)

Side by Side Diff: third_party/protobuf/ruby/ext/google/protobuf_c/protobuf.c

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Protocol Buffers - Google's data interchange format 1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2014 Google Inc. All rights reserved. 2 // Copyright 2014 Google Inc. All rights reserved.
3 // https://developers.google.com/protocol-buffers/ 3 // https://developers.google.com/protocol-buffers/
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // * Redistributions of source code must retain the above copyright 9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer. 10 // notice, this list of conditions and the following disclaimer.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 rb_define_singleton_method(protobuf, "deep_copy", 106 rb_define_singleton_method(protobuf, "deep_copy",
107 Google_Protobuf_deep_copy, 1); 107 Google_Protobuf_deep_copy, 1);
108 108
109 kRubyStringUtf8Encoding = rb_utf8_encoding(); 109 kRubyStringUtf8Encoding = rb_utf8_encoding();
110 kRubyStringASCIIEncoding = rb_usascii_encoding(); 110 kRubyStringASCIIEncoding = rb_usascii_encoding();
111 kRubyString8bitEncoding = rb_ascii8bit_encoding(); 111 kRubyString8bitEncoding = rb_ascii8bit_encoding();
112 112
113 upb_def_to_ruby_obj_map = rb_hash_new(); 113 upb_def_to_ruby_obj_map = rb_hash_new();
114 rb_gc_register_address(&upb_def_to_ruby_obj_map); 114 rb_gc_register_address(&upb_def_to_ruby_obj_map);
115 map_parse_frames = rb_ary_new();
116 rb_gc_register_address(&map_parse_frames);
115 } 117 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698