summaryrefslogtreecommitdiff
path: root/upb/sink.h
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2013-05-28 13:44:50 -0700
committerJosh Haberman <jhaberman@gmail.com>2013-05-28 13:44:50 -0700
commitbada1e94f472e7507a97e7565369841b3d25c9b0 (patch)
tree1fe0882b497206db03e21eb87c975d5e400fe097 /upb/sink.h
parentee3a3191cda5faae5dcc9cd1526292c57f2be343 (diff)
Merge from Google-internal development.
- Better error reporting for upb::Def setters. - error reporting for upb::Handlers setters. - made the start/endmsg handlers a little less special-cased.
Diffstat (limited to 'upb/sink.h')
-rw-r--r--upb/sink.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/upb/sink.h b/upb/sink.h
index dcc2b4f..bf88222 100644
--- a/upb/sink.h
+++ b/upb/sink.h
@@ -170,7 +170,7 @@ class upb::Sink {
// Should be called at the start and end of processing.
bool StartMessage();
- void EndMessage();
+ bool EndMessage();
// Putting of individual values. These work for both repeated and
// non-repeated fields, but for repeated fields you must wrap them in
@@ -230,7 +230,7 @@ void upb_sink_reset(upb_sink *s, void *closure);
upb_pipeline *upb_sink_pipeline(const upb_sink *s);
void *upb_sink_getobj(const upb_sink *s);
bool upb_sink_startmsg(upb_sink *s);
-void upb_sink_endmsg(upb_sink *s);
+bool upb_sink_endmsg(upb_sink *s);
bool upb_sink_putint32(upb_sink *s, upb_selector_t sel, int32_t val);
bool upb_sink_putint64(upb_sink *s, upb_selector_t sel, int64_t val);
bool upb_sink_putuint32(upb_sink *s, upb_selector_t sel, uint32_t val);
@@ -299,8 +299,8 @@ inline T* Sink::GetObject() const {
inline bool Sink::StartMessage() {
return upb_sink_startmsg(this);
}
-inline void Sink::EndMessage() {
- upb_sink_endmsg(this);
+inline bool Sink::EndMessage() {
+ return upb_sink_endmsg(this);
}
inline bool Sink::PutInt32(Handlers::Selector sel, int32_t val) {
return upb_sink_putint32(this, sel, val);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback