diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2017-07-17 21:54:38 +0200 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2017-07-17 21:55:58 +0200 |
commit | be9094d91a2da777002a0f713306ac1bb74a6ac5 (patch) | |
tree | 431430e1e82092bbe95216a83e672761ab4d4613 /upb/msg.h | |
parent | 4da95f621330608f6dbd166cd376052c5deb6f02 (diff) |
New encode/decode: most (171 / 192) conformance tests pass.
Diffstat (limited to 'upb/msg.h')
-rw-r--r-- | upb/msg.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -388,13 +388,14 @@ bool upb_msg_getscalarhandlerdata(const upb_handlers *h, #define UPB_NOT_IN_ONEOF UINT16_MAX #define UPB_NO_HASBIT UINT16_MAX +#define UPB_NO_SUBMSG UINT16_MAX typedef struct { uint32_t number; uint32_t offset; /* If in a oneof, offset of default in default_msg below. */ - uint16_t hasbit; - uint16_t oneof_index; /* UPB_NOT_IN_ONEOF if not in a oneof. */ - uint16_t submsg_index; + uint16_t hasbit; /* UPB_NO_HASBIT if no hasbit. */ + uint16_t oneof_index; /* UPB_NOT_IN_ONEOF if not in a oneof. */ + uint16_t submsg_index; /* UPB_NO_SUBMSG if no submsg. */ uint8_t type; uint8_t label; } upb_msglayout_fieldinit_v1; |