diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2011-05-08 17:42:40 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2011-05-08 17:42:40 -0700 |
commit | 1782f28c866b3fc0534fba69e0802c24414bdaaa (patch) | |
tree | f2369ad877847936316037378cc7b62afab55388 /src/upb_msg.c | |
parent | eb622c0531f44b9521606ba8a4ec2462a1018d1a (diff) |
Documentation, some type renaming, nix unknown handler for now.
Diffstat (limited to 'src/upb_msg.c')
-rw-r--r-- | src/upb_msg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/upb_msg.c b/src/upb_msg.c index 64947c8..98147c8 100644 --- a/src/upb_msg.c +++ b/src/upb_msg.c @@ -207,7 +207,7 @@ static upb_flow_t upb_msg_dispatch(upb_msg *msg, upb_msgdef *md, upb_dispatcher *d); static upb_flow_t upb_msg_pushval(upb_value val, upb_fielddef *f, - upb_dispatcher *d, upb_fieldent *hf) { + upb_dispatcher *d, upb_fhandlers *hf) { #define CHECK_FLOW(x) do { \ upb_flow_t flow = x; if (flow != UPB_CONTINUE) return flow; \ } while(0) @@ -237,7 +237,7 @@ static upb_flow_t upb_msg_dispatch(upb_msg *msg, upb_msgdef *md, for(i = upb_msg_begin(md); !upb_msg_done(i); i = upb_msg_next(md, i)) { upb_fielddef *f = upb_msg_iter_field(i); if (!upb_msg_has(msg, f)) continue; - upb_fieldent *hf = upb_dispatcher_lookup(d, f->number); + upb_fhandlers *hf = upb_dispatcher_lookup(d, f->number); if (!hf) continue; upb_value val = upb_msg_get(msg, f); if (upb_isarray(f)) { @@ -462,13 +462,13 @@ upb_sflow_t upb_msgsink_startsubmsg_r(void *_m, upb_value _fval) { } void upb_msg_regdhandlers(upb_handlers *h) { - upb_register_all(h, NULL, NULL, NULL, NULL, NULL, NULL); + upb_register_all(h, NULL, NULL, NULL, NULL, NULL); for (int i = 0; i < h->msgs_len; i++) { - upb_msgent *m = &h->msgs[i]; + upb_mhandlers *m = &h->msgs[i]; upb_inttable_iter iter = upb_inttable_begin(&m->fieldtab); for(; !upb_inttable_done(iter); iter = upb_inttable_next(&m->fieldtab, iter)) { - upb_fieldent *fe = upb_inttable_iter_value(iter); + upb_fhandlers *fe = upb_inttable_iter_value(iter); if (fe->type == UPB_TYPE_ENDGROUP) continue; upb_fielddef *f = upb_value_getfielddef(fe->fval); uint16_t msg_size = 0; |