summaryrefslogtreecommitdiff
path: root/src/upb.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-01-16 21:47:47 -0800
committerJoshua Haberman <joshua@reverberate.org>2010-01-16 21:47:47 -0800
commit036fe6bb0673930cd5e8450532abe3b7acffb94e (patch)
tree652770f222f592542745060d61be96ad2ec0427e /src/upb.h
parent611afe9c6928ea814abd37c4b3cc2869a6ed5efd (diff)
Flesh out implementation of upb_sizebuilder.
Diffstat (limited to 'src/upb.h')
-rw-r--r--src/upb.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/upb.h b/src/upb.h
index b680d7b..4fb5773 100644
--- a/src/upb.h
+++ b/src/upb.h
@@ -272,14 +272,14 @@ enum upb_status_code {
// The input byte stream ended in the middle of a record.
UPB_STATUS_NEED_MORE_DATA = 1,
- // The user value callback opted to stop parsing.
- UPB_STATUS_USER_CANCELLED = 2,
-
// An unrecoverable error occurred.
UPB_STATUS_ERROR = -1,
// A varint went for 10 bytes without terminating.
- UPB_ERROR_UNTERMINATED_VARINT = -2
+ UPB_ERROR_UNTERMINATED_VARINT = -2,
+
+ // The max nesting level (UPB_MAX_NESTING) was exceeded.
+ UPB_ERROR_MAX_NESTING_EXCEEDED = -3
};
#define UPB_ERRORMSG_MAXLEN 256
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback