From 992a03be55faf83d794b9ec5e8c4ca7e78c08a9b Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 9 Jun 2010 15:55:02 -0700 Subject: More decoder work, first attempts at compiling it. --- src/upb.c | 28 ---------------------------- 1 file changed, 28 deletions(-) (limited to 'src/upb.c') diff --git a/src/upb.c b/src/upb.c index 5d145e5..938c72d 100644 --- a/src/upb.c +++ b/src/upb.c @@ -10,34 +10,6 @@ #include "upb.h" -#define alignof(t) offsetof(struct { char c; t x; }, x) -#define TYPE_INFO(proto_type, wire_type, ctype) \ - [GOOGLE_PROTOBUF_FIELDDESCRIPTORPROTO_TYPE_ ## proto_type] = \ - {alignof(ctype), sizeof(ctype), wire_type, #ctype}, - -// With packed fields, any type expecting 32-bit, 64-bit or varint can instead -// receive delimited. -upb_type_info upb_types[] = { - TYPE_INFO(DOUBLE, (1<