summaryrefslogtreecommitdiff
path: root/src/ast-writer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast-writer.cc')
-rw-r--r--src/ast-writer.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ast-writer.cc b/src/ast-writer.cc
index 3acc26ae..84296a40 100644
--- a/src/ast-writer.cc
+++ b/src/ast-writer.cc
@@ -44,14 +44,14 @@ static const uint8_t s_is_char_escaped[] = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
-typedef enum NextChar {
+enum NextChar {
NEXT_CHAR_NONE,
NEXT_CHAR_SPACE,
NEXT_CHAR_NEWLINE,
NEXT_CHAR_FORCE_NEWLINE,
-} NextChar;
+};
-typedef struct Context {
+struct Context {
WabtStream stream;
WabtResult result;
int indent;
@@ -65,7 +65,7 @@ typedef struct Context {
int table_index;
int memory_index;
int func_type_index;
-} Context;
+};
static void indent(Context* ctx) {
ctx->indent += INDENT_SIZE;