summaryrefslogtreecommitdiff
path: root/src/upb_msg.c
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2011-03-26 18:14:01 -0700
committerJosh Haberman <jhaberman@gmail.com>2011-03-26 18:14:01 -0700
commit2c86e7eddb23c92cc83391c3f751c72237ec3759 (patch)
treebd2960efa1a9ca00c58ba5356f797d05ee55e336 /src/upb_msg.c
parent484809c272df7b1f05e56d09f6a5e8e0f340cac4 (diff)
Small semantics changes in the decoder.
Simplified some of the semantics around the decoder's data structures, in anticipation of sharing them between the regular C decoder and a JIT-ted decoder.
Diffstat (limited to 'src/upb_msg.c')
-rw-r--r--src/upb_msg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/upb_msg.c b/src/upb_msg.c
index 1705b35..6fc321e 100644
--- a/src/upb_msg.c
+++ b/src/upb_msg.c
@@ -233,9 +233,10 @@ static upb_flow_t upb_msg_dispatch(upb_msg *msg, upb_msgdef *md,
void upb_msg_runhandlers(upb_msg *msg, upb_msgdef *md, upb_handlers *h,
void *closure, upb_status *status) {
upb_dispatcher d;
- upb_dispatcher_init(&d, h, 0);
+ upb_dispatcher_init(&d, h);
+ upb_dispatcher_reset(&d, closure, 0);
- upb_dispatch_startmsg(&d, closure);
+ upb_dispatch_startmsg(&d);
upb_msg_dispatch(msg, md, &d);
upb_dispatch_endmsg(&d, status);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback