summaryrefslogtreecommitdiff
path: root/src/binary-writer.cc
diff options
context:
space:
mode:
authorBen Smith <binjimin@gmail.com>2017-02-24 16:49:49 -0800
committerGitHub <noreply@github.com>2017-02-24 16:49:49 -0800
commit4e7541cb2d067eeebce5f13f85c0d4f67a685299 (patch)
tree95d4e943fb8a29ac8d704c1ee108d5c32b3258b5 /src/binary-writer.cc
parent529015dc83b426659047689922eee7f9a34f9f15 (diff)
downloadwabt-4e7541cb2d067eeebce5f13f85c0d4f67a685299.tar.gz
wabt-4e7541cb2d067eeebce5f13f85c0d4f67a685299.tar.bz2
wabt-4e7541cb2d067eeebce5f13f85c0d4f67a685299.zip
Remove struct and enum typedefs (#317)
Diffstat (limited to 'src/binary-writer.cc')
-rw-r--r--src/binary-writer.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/binary-writer.cc b/src/binary-writer.cc
index e2ffa641..a0dbb5cc 100644
--- a/src/binary-writer.cc
+++ b/src/binary-writer.cc
@@ -40,20 +40,20 @@ static const size_t LEB_SECTION_SIZE_GUESS = 1;
#define ALLOC_FAILURE \
fprintf(stderr, "%s:%d: allocation failed\n", __FILE__, __LINE__)
-typedef struct Reloc {
+struct Reloc {
WabtRelocType type;
size_t offset;
-} Reloc;
+};
WABT_DEFINE_VECTOR(reloc, Reloc);
-typedef struct RelocSection {
+struct RelocSection {
const char* name;
WabtBinarySection section_code;
RelocVector relocations;
-} RelocSection;
+};
WABT_DEFINE_VECTOR(reloc_section, RelocSection);
-typedef struct Context {
+struct Context {
WabtStream stream;
WabtStream* log_stream;
const WabtWriteBinaryOptions* options;
@@ -65,7 +65,7 @@ typedef struct Context {
size_t last_section_leb_size_guess;
WabtBinarySection last_section_type;
size_t last_section_payload_offset;
-} Context;
+};
void wabt_destroy_reloc_section(RelocSection* reloc_section) {
wabt_destroy_reloc_vector(&reloc_section->relocations);