summaryrefslogtreecommitdiff
path: root/core/upb.h
diff options
context:
space:
mode:
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