summaryrefslogtreecommitdiff
path: root/src/upb.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-12-28 16:41:33 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-12-28 16:41:33 -0800
commite5debfa1c99757ad08bccd834b9596a4f5e97adb (patch)
tree9e47c92b10875f83571475e88efdf9ae4af25e34 /src/upb.h
parent602e093504dc07fec421df636d307654685892cb (diff)
More incremental work; ported some of upbc.
Diffstat (limited to 'src/upb.h')
-rw-r--r--src/upb.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/upb.h b/src/upb.h
index 237281f..aeef349 100644
--- a/src/upb.h
+++ b/src/upb.h
@@ -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;
};
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback