diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-08-27 11:10:13 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-08-27 11:10:13 -0700 |
commit | f17ed90f7704d77e3eb59a6f6b693ab4c598936a (patch) | |
tree | 48c0b69db3984577d77219eb861783b6bed16d24 /src/upb_parse.h | |
parent | b276aa78b6d04a35420ce699ae51771550b97d11 (diff) |
Some cleanup and reformatting, fixed the benchmarks.
Diffstat (limited to 'src/upb_parse.h')
-rw-r--r-- | src/upb_parse.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/upb_parse.h b/src/upb_parse.h index 1454dd5..a8f4294 100644 --- a/src/upb_parse.h +++ b/src/upb_parse.h @@ -74,9 +74,8 @@ typedef void (*upb_submsg_start_cb)(void *udata, typedef void (*upb_submsg_end_cb)(void *udata); struct upb_stream_parser { - /* For delimited submsgs, counts from the submsg len down to zero. - * For group submsgs, counts from zero down to the negative len. */ - uint32_t stack[UPB_MAX_NESTING], *top, *limit; + // Stack entries store the offset where the submsg ends (for groups, 0). + size_t stack[UPB_MAX_NESTING], *top, *limit; size_t completed_offset; void *udata; upb_tag_cb tag_cb; |