From 2a7f51f3fd534b3e9e098c522cffbb96e1551474 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 6 Oct 2010 08:19:34 -0700 Subject: Change upb_src to use push-based interface. Unfortunately my previous detailed commit message was lost somehow by git or vi. Will have to explain in more detail at a later date the rationale for this change. The build will be broken until I port the old decoder to this new interface. --- core/upb.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/upb.h') diff --git a/core/upb.h b/core/upb.h index 7ee0469..6ecc2a0 100644 --- a/core/upb.h +++ b/core/upb.h @@ -261,6 +261,10 @@ enum upb_status_code { UPB_ERROR_MAX_NESTING_EXCEEDED = -3 }; +// TODO: consider making this a single word: a upb_string* where we use the low +// bits as flags indicating whether there is an error and whether it is +// resumable. This would improve efficiency, because the code would not need +// to be loaded after a call to a function returning a status. typedef struct { enum upb_status_code code; upb_string *str; -- cgit v1.2.3