diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2011-08-31 14:57:45 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2011-08-31 14:57:45 -0700 |
commit | 8eb2b2a2169af97e5182a5a758b09a6e0e0caf37 (patch) | |
tree | c40eca7db34be18e069ee521376a6f79ebe78536 /upb/handlers.h | |
parent | 521ac7a89adb97bcd1781b4131333554ccd4de87 (diff) |
Revised upb_bytesink, refactored upb_textprinter (untested).
Diffstat (limited to 'upb/handlers.h')
-rw-r--r-- | upb/handlers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/upb/handlers.h b/upb/handlers.h index 2e44318..a7c1d9d 100644 --- a/upb/handlers.h +++ b/upb/handlers.h @@ -89,7 +89,7 @@ typedef enum { // Halt processing permanently (in a non-resumable way). The endmsg handlers // for any currently open messages will be called which can supply a more // specific status message. No further input data will be consumed. - UPB_BREAK, + UPB_BREAK = -1, // Skips to the end of the current submessage (or if we are at the top // level, skips to the end of the entire message). In other words, it is @@ -102,7 +102,7 @@ typedef enum { // // If UPB_SKIPSUBMSG is called from the top-level message, no further input // data will be consumed. - UPB_SKIPSUBMSG, + UPB_SKIPSUBMSG = -2, // TODO: Add UPB_SUSPEND, for resumable producers/consumers. } upb_flow_t; |