소스 검색

Updated upb to latest version (C89).

Since this version of upb supports C89, all of the
extra compiler flags are no longer required.
Josh Haberman 10 년 전
부모
커밋
e8ed021ee7
4개의 변경된 파일575개의 추가작업 그리고 567개의 파일을 삭제
  1. 1 3
      ruby/ext/google/protobuf_c/extconf.rb
  2. 1 1
      ruby/ext/google/protobuf_c/map.c
  3. 200 278
      ruby/ext/google/protobuf_c/upb.c
  4. 373 285
      ruby/ext/google/protobuf_c/upb.h

+ 1 - 3
ruby/ext/google/protobuf_c/extconf.rb

@@ -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"]

+ 1 - 1
ruby/ext/google/protobuf_c/map.c

@@ -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);
 }
 
 // -----------------------------------------------------------------------------

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 200 - 278
ruby/ext/google/protobuf_c/upb.c


파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 373 - 285
ruby/ext/google/protobuf_c/upb.h


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.