From 4a8b9be46c9485a35383b52d400ba086d3f40ace Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 31 Aug 2011 20:03:59 -0700 Subject: Header cleanup, clarify/correct comments for interfaces. --- benchmarks/parsestream.upb.c | 2 +- benchmarks/parsetoproto2.upb.cc | 2 +- benchmarks/parsetostruct.upb.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'benchmarks') diff --git a/benchmarks/parsestream.upb.c b/benchmarks/parsestream.upb.c index e5f6246..2d34206 100644 --- a/benchmarks/parsestream.upb.c +++ b/benchmarks/parsestream.upb.c @@ -57,7 +57,7 @@ static bool initialize() // Cause all messages to be read, but do nothing when they are. upb_handlerset hset = {NULL, NULL, value, startsubmsg, NULL, NULL, NULL}; upb_handlers_reghandlerset(handlers, def, &hset); - upb_decoder_initforhandlers(&decoder, handlers); + upb_decoder_init(&decoder, handlers); upb_handlers_unref(handlers); upb_stringsrc_init(&stringsrc); return true; diff --git a/benchmarks/parsetoproto2.upb.cc b/benchmarks/parsetoproto2.upb.cc index 2e78c1e..286c7f3 100644 --- a/benchmarks/parsetoproto2.upb.cc +++ b/benchmarks/parsetoproto2.upb.cc @@ -279,7 +279,7 @@ static bool initialize() upb_handlers *h = upb_handlers_new(); upb_accessors_reghandlers(h, def); if (!JIT) h->should_jit = false; - upb_decoder_initforhandlers(&d, h); + upb_decoder_init(&d, h); upb_handlers_unref(h); return true; diff --git a/benchmarks/parsetostruct.upb.c b/benchmarks/parsetostruct.upb.c index d360f05..6a36544 100644 --- a/benchmarks/parsetostruct.upb.c +++ b/benchmarks/parsetostruct.upb.c @@ -47,7 +47,7 @@ static bool initialize() upb_handlers *h = upb_handlers_new(); upb_accessors_reghandlers(h, def); if (!JIT) h->should_jit = false; - upb_decoder_initforhandlers(&d, h); + upb_decoder_init(&d, h); upb_handlers_unref(h); if (!BYREF) { -- cgit v1.2.3