diff options
author | Joshua Haberman <joshua@reverberate.org> | 2010-07-10 18:11:24 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2010-07-10 18:11:24 -0700 |
commit | db6c7387bc1df49deac41155a173e33017a75ed8 (patch) | |
tree | 4ea4b29da78b4dfb0515aff260e86120b2036e6b /core/upb.h | |
parent | 67b16cbe5c55d00d7e576cdf479392f3a0e927a5 (diff) |
Incremental progress towards getting upb_def to bootstrap.
Diffstat (limited to 'core/upb.h')
-rw-r--r-- | core/upb.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |