summaryrefslogtreecommitdiff
path: root/core/upb.h
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-07-10 18:11:24 -0700
committerJoshua Haberman <joshua@reverberate.org>2010-07-10 18:11:24 -0700
commitdb6c7387bc1df49deac41155a173e33017a75ed8 (patch)
tree4ea4b29da78b4dfb0515aff260e86120b2036e6b /core/upb.h
parent67b16cbe5c55d00d7e576cdf479392f3a0e927a5 (diff)
Incremental progress towards getting upb_def to bootstrap.
Diffstat (limited to 'core/upb.h')
-rw-r--r--core/upb.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/upb.h b/core/upb.h
index 230e638..630d9e1 100644
--- a/core/upb.h
+++ b/core/upb.h
@@ -195,7 +195,12 @@ INLINE bool upb_ok(upb_status *status) {
return status->code == UPB_STATUS_OK;
}
-void upb_reset(upb_status *status);
+INLINE void upb_status_init(upb_status *status) {
+ status->code = UPB_STATUS_OK;
+ status->str = NULL;
+}
+
+void upb_status_reset(upb_status *status);
void upb_seterr(upb_status *status, enum upb_status_code code, const char *msg,
...);
void upb_copyerr(upb_status *to, upb_status *from);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback