diff options
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/parsestream.upb.c | 2 | ||||
-rw-r--r-- | benchmarks/parsetoproto2.upb.cc | 2 | ||||
-rw-r--r-- | benchmarks/parsetostruct.upb.c | 2 |
3 files changed, 3 insertions, 3 deletions
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) { |