summaryrefslogtreecommitdiff
path: root/src/ast-lexer.h
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/ast-lexer.h
parent529015dc83b426659047689922eee7f9a34f9f15 (diff)
downloadwabt-4e7541cb2d067eeebce5f13f85c0d4f67a685299.tar.gz
wabt-4e7541cb2d067eeebce5f13f85c0d4f67a685299.tar.bz2
wabt-4e7541cb2d067eeebce5f13f85c0d4f67a685299.zip
Remove struct and enum typedefs (#317)
Diffstat (limited to 'src/ast-lexer.h')
-rw-r--r--src/ast-lexer.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ast-lexer.h b/src/ast-lexer.h
index 0b620be3..10c0f4c9 100644
--- a/src/ast-lexer.h
+++ b/src/ast-lexer.h
@@ -23,12 +23,12 @@
#include "common.h"
#include "vector.h"
-typedef enum WabtAstLexerSourceType {
+enum WabtAstLexerSourceType {
WABT_LEXER_SOURCE_TYPE_FILE,
WABT_LEXER_SOURCE_TYPE_BUFFER,
-} WabtAstLexerSourceType;
+};
-typedef struct WabtAstLexerSource {
+struct WabtAstLexerSource {
WabtAstLexerSourceType type;
union {
FILE* file;
@@ -38,9 +38,9 @@ typedef struct WabtAstLexerSource {
size_t read_offset;
} buffer;
};
-} WabtAstLexerSource;
+};
-typedef struct WabtAstLexer {
+struct WabtAstLexer {
WabtAstLexerSource source;
const char* filename;
int line;
@@ -56,7 +56,7 @@ typedef struct WabtAstLexer {
char* token;
char* cursor;
char* limit;
-} WabtAstLexer;
+};
WABT_EXTERN_C_BEGIN