summaryrefslogtreecommitdiff
path: root/upb/structdefs.int.h
diff options
context:
space:
mode:
Diffstat (limited to 'upb/structdefs.int.h')
-rw-r--r--upb/structdefs.int.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/upb/structdefs.int.h b/upb/structdefs.int.h
index 6b19537..740b2dc 100644
--- a/upb/structdefs.int.h
+++ b/upb/structdefs.int.h
@@ -152,6 +152,7 @@ extern const struct upb_refcounted_vtbl upb_enumdef_vtbl;
struct upb_oneofdef {
upb_refcounted base;
+ uint32_t index; /* Index within oneofs. */
const char *name;
upb_strtable ntof;
upb_inttable itof;
@@ -161,7 +162,7 @@ struct upb_oneofdef {
extern const struct upb_refcounted_vtbl upb_oneofdef_vtbl;
#define UPB_ONEOFDEF_INIT(name, ntof, itof, refs, ref2s) \
- { UPB_REFCOUNT_INIT(&upb_oneofdef_vtbl, refs, ref2s), name, ntof, itof }
+ { UPB_REFCOUNT_INIT(&upb_oneofdef_vtbl, refs, ref2s), 0, name, ntof, itof }
/* upb_symtab *****************************************************************/
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback