summaryrefslogtreecommitdiff
path: root/core/upb.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-10-06 08:19:34 -0700
committerJoshua Haberman <joshua@reverberate.org>2010-10-06 08:19:34 -0700
commit2a7f51f3fd534b3e9e098c522cffbb96e1551474 (patch)
tree7a7453fbabcee81df4033f1739ddd82828dc0f84 /core/upb.h
parenta9e998159c5ac8c4f2644b5ed0eda2e8ff1f8706 (diff)
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.
Diffstat (limited to 'core/upb.h')
-rw-r--r--core/upb.h4
1 files changed, 4 insertions, 0 deletions
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;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback