summaryrefslogtreecommitdiff
path: root/src/upb_parse.c
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-11-26 20:03:07 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-11-26 20:03:07 -0800
commit9e3f5e343b8a729331dd6448bddb9150ae60d63c (patch)
treec37742bb66ec8782e684c0f031a8ab7615fa9f8c /src/upb_parse.c
parentf231856c48ced0b95027c58fbf7bdd5569d02e75 (diff)
Make upb_msgdef own all its data.
This is in anticipation of making upb_msgdef's easy to dup. This involved removing all traces of any descriptors from the defs.
Diffstat (limited to 'src/upb_parse.c')
-rw-r--r--src/upb_parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/upb_parse.c b/src/upb_parse.c
index 2e910f2..3abaedf 100644
--- a/src/upb_parse.c
+++ b/src/upb_parse.c
@@ -467,9 +467,9 @@ size_t upb_cbparser_parse(struct upb_cbparser *p, void *_buf, size_t len,
buf = delim_end; // Could be >end.
}
} else {
- if(!f || !upb_check_type(tag.wire_type, f->type)) {
- buf = skip_wire_value(buf, end, tag.wire_type, status);
- } else if (f->type == UPB_TYPENUM(GROUP)) {
+ //if(!f || !upb_check_type(tag.wire_type, f->type)) {
+ // buf = skip_wire_value(buf, end, tag.wire_type, status);
+ if (f->type == UPB_TYPENUM(GROUP)) {
submsg_end = push(p, start, 0, f, status);
msgdef = p->top->msgdef;
} else {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback