Updated upb to latest version (C89).

Since this version of upb supports C89, all of the
extra compiler flags are no longer required.
pull/477/head
Josh Haberman 10 years ago
parent 9cbdaedb86
commit e8ed021ee7
  1. 4
      ruby/ext/google/protobuf_c/extconf.rb
  2. 2
      ruby/ext/google/protobuf_c/map.c
  3. 4894
      ruby/ext/google/protobuf_c/upb.c
  4. 8748
      ruby/ext/google/protobuf_c/upb.h

@ -2,9 +2,7 @@
require 'mkmf'
$CFLAGS += " -O3 -std=c99 -Wno-unused-function " +
"-Wno-declaration-after-statement -Wno-unused-variable " +
"-Wno-sign-compare -DNDEBUG "
$CFLAGS += " -O3 -DNDEBUG"
$objs = ["protobuf.o", "defs.o", "storage.o", "message.o",
"repeated_field.o", "map.o", "encode_decode.o", "upb.o"]

@ -120,7 +120,7 @@ static VALUE table_key_to_ruby(Map* self, const char* buf, size_t length) {
}
static void* value_memory(upb_value* v) {
return (void*)(&v->val.uint64);
return (void*)(&v->val);
}
// -----------------------------------------------------------------------------

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save