summaryrefslogtreecommitdiff
path: root/core/upb.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2011-02-05 22:07:10 -0800
committerJoshua Haberman <joshua@reverberate.org>2011-02-05 22:07:10 -0800
commit806ba1c80d86bd59759cf59efc057662eecbcf65 (patch)
treed30146be1313d6be6818cb1c613fc4ea26b9a7d1 /core/upb.h
parent3affb319260263efc3cee502896d9f981186c7da (diff)
Another round of fixes.
test_vs_proto2.googlemessage1 passes again, with no memory leaks!
Diffstat (limited to 'core/upb.h')
-rw-r--r--core/upb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/upb.h b/core/upb.h
index 779f85a..837fc52 100644
--- a/core/upb.h
+++ b/core/upb.h
@@ -97,6 +97,7 @@ typedef struct {
uint8_t size;
upb_wire_type_t native_wire_type;
uint8_t allowed_wire_types; // For packable fields, also allows delimited.
+ uint8_t inmemory_type; // For example, INT32, SINT32, and SFIXED32 -> INT32
char *ctype;
} upb_type_info;
@@ -183,6 +184,7 @@ typedef struct {
UPB_VALUE_ACCESSORS(double, _double, double, UPB_TYPE(DOUBLE));
UPB_VALUE_ACCESSORS(float, _float, float, UPB_TYPE(FLOAT));
UPB_VALUE_ACCESSORS(int32, int32, int32_t, UPB_TYPE(INT32));
+UPB_VALUE_ACCESSORS(enumval, int32, int32_t, UPB_TYPE(ENUM));
UPB_VALUE_ACCESSORS(int64, int64, int64_t, UPB_TYPE(INT64));
UPB_VALUE_ACCESSORS(uint32, uint32, uint32_t, UPB_TYPE(UINT32));
UPB_VALUE_ACCESSORS(uint64, uint64, uint64_t, UPB_TYPE(UINT64));
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback