From 036fe6bb0673930cd5e8450532abe3b7acffb94e Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 16 Jan 2010 21:47:47 -0800 Subject: Flesh out implementation of upb_sizebuilder. --- src/upb.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/upb.h') 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 -- cgit v1.2.3