diff options
author | Joshua Haberman <joshua@reverberate.org> | 2011-02-05 22:07:10 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2011-02-05 22:07:10 -0800 |
commit | 806ba1c80d86bd59759cf59efc057662eecbcf65 (patch) | |
tree | d30146be1313d6be6818cb1c613fc4ea26b9a7d1 /core/upb.h | |
parent | 3affb319260263efc3cee502896d9f981186c7da (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)); |