From 6a1f3a66939308668ab8dce0d195afec16e02af9 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 14 Jul 2011 23:15:00 -0700 Subject: Major refactoring: upb_string is gone in favor of upb_strref. --- src/upb_handlers.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/upb_handlers.h') diff --git a/src/upb_handlers.h b/src/upb_handlers.h index caf0645..1ccc59f 100644 --- a/src/upb_handlers.h +++ b/src/upb_handlers.h @@ -17,6 +17,7 @@ #include #include "upb.h" #include "upb_def.h" +#include "upb_bytestream.h" #ifdef __cplusplus extern "C" { @@ -303,14 +304,12 @@ typedef struct { // Members to use as the data source requires. void *srcclosure; + uint64_t end_ofs; uint16_t msgindex; uint16_t fieldindex; - uint32_t end_offset; - // Does this frame represent a sequence or a submsg (f might be both). - // We only need a single bit here, but this will make each individual - // frame grow from 32 to 40 bytes on LP64, which is a bit excessive. - bool is_sequence; + bool is_sequence; // frame represents seq or submsg? (f might be both). + bool is_packed; // !upb_issubmsg(f) && end_ofs != UINT64_MAX (strings aren't pushed) } upb_dispatcher_frame; // Called when some of the input needs to be skipped. All frames from -- cgit v1.2.3