OLD | NEW |
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 Loading... |
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); | |
117 } | 115 } |
OLD | NEW |