diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-12-28 16:41:33 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-12-28 16:41:33 -0800 |
commit | e5debfa1c99757ad08bccd834b9596a4f5e97adb (patch) | |
tree | 9e47c92b10875f83571475e88efdf9ae4af25e34 /src/upb.h | |
parent | 602e093504dc07fec421df636d307654685892cb (diff) |
More incremental work; ported some of upbc.
Diffstat (limited to 'src/upb.h')
-rw-r--r-- | src/upb.h | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -122,9 +122,9 @@ struct upb_tag { /* Polymorphic values of .proto types *****************************************/ -struct upb_string; -struct upb_array; -struct upb_msg; +union upb_string; +union upb_array; +union upb_msg; // A single .proto value. The owner must have an out-of-band way of knowing // the type, so that it knows which union member to use. @@ -136,9 +136,9 @@ union upb_value { uint32_t uint32; uint64_t uint64; bool _bool; - struct upb_string *str; - struct upb_array *arr; - struct upb_msg *msg; + union upb_string *str; + union upb_array *arr; + union upb_msg *msg; }; // A pointer to a .proto value. The owner must have an out-of-band way of @@ -151,9 +151,9 @@ union upb_value_ptr { uint32_t *uint32; uint64_t *uint64; bool *_bool; - struct upb_string **str; - struct upb_array **arr; - struct upb_msg **msg; + union upb_string **str; + union upb_array **arr; + union upb_msg **msg; void *_void; }; |