summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-01-15 19:11:54 -0800
committerJoshua Haberman <joshua@reverberate.org>2010-01-15 19:11:54 -0800
commitd5566c6038845e505f7c16130b2368ef9bb3a373 (patch)
treebf808b4ef5d0391a9d6ed3be9247d3e0f7ce5cef /benchmarks
parent9116c697f845e7ca215628029800c36f7dfbfaee (diff)
Remove struct keyword from all types, use typedef instead.
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/parsetostruct.upb_table.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/benchmarks/parsetostruct.upb_table.c b/benchmarks/parsetostruct.upb_table.c
index 72799e4..494d5b7 100644
--- a/benchmarks/parsetostruct.upb_table.c
+++ b/benchmarks/parsetostruct.upb_table.c
@@ -5,9 +5,9 @@
#include "upb_def.h"
#include "upb_decoder.h"
-static struct upb_symtab *s;
+static upb_symtab *s;
static upb_strptr str;
-static struct upb_msgdef *def;
+static upb_msgdef *def;
static upb_msg *msgs[NUM_MESSAGES];
static upb_decoder *decoder;
static upb_msgsink *sink;
@@ -15,7 +15,7 @@ static upb_msgsink *sink;
static bool initialize()
{
// Initialize upb state, decode descriptor.
- struct upb_status status = UPB_STATUS_INIT;
+ upb_status status = UPB_STATUS_INIT;
s = upb_symtab_new();
upb_strptr fds = upb_strreadfile(MESSAGE_DESCRIPTOR_FILE);
if(upb_string_isnull(fds)) {
@@ -66,7 +66,7 @@ static void cleanup()
static size_t run(int i)
{
- struct upb_status status = UPB_STATUS_INIT;
+ upb_status status = UPB_STATUS_INIT;
upb_msg *msg = msgs[i%NUM_MESSAGES];
upb_msgsink_reset(sink, msg);
upb_decoder_reset(decoder, upb_msgsink_sink(sink));
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback