diff options
author | Joshua Haberman <joshua@reverberate.org> | 2010-06-07 17:27:54 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2010-06-07 17:27:54 -0700 |
commit | fbc57ee4882eca6321f8e1f2f5a3b8fae448605b (patch) | |
tree | 073d6dd9f5e814d934f33ec4f91ef41c5acfc57f /src/upb_srcsink.h | |
parent | cfe0ef08c15d038865e9618af25de76c8304ad9e (diff) |
More work on the decoder.
Diffstat (limited to 'src/upb_srcsink.h')
-rw-r--r-- | src/upb_srcsink.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/upb_srcsink.h b/src/upb_srcsink.h index 6a60f31..3a57cc8 100644 --- a/src/upb_srcsink.h +++ b/src/upb_srcsink.h @@ -71,7 +71,7 @@ upb_status *upb_sink_status(upb_sink *sink); /* upb_bytesrc ****************************************************************/ // Returns the next string in the stream. NULL is returned on error or eof. -// The string must be at least "minlen" bytes long. +// The string must be at least "minlen" bytes long unless the stream is eof. // // A ref is passed to the caller, though the caller is encouraged to pass the // ref back to the bytesrc with upb_bytesrc_recycle(). This can help reduce @@ -140,6 +140,7 @@ typedef struct { typedef struct { upb_src_vtable *vtbl; upb_status status; + bool eof; #ifndef NDEBUG int state; // For debug-mode checking of API usage. #endif |