diff options
Diffstat (limited to 'src/wast-parser-lexer-shared.cc')
-rw-r--r-- | src/wast-parser-lexer-shared.cc | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/wast-parser-lexer-shared.cc b/src/wast-parser-lexer-shared.cc index c9ad9b61..80a9b8bd 100644 --- a/src/wast-parser-lexer-shared.cc +++ b/src/wast-parser-lexer-shared.cc @@ -16,27 +16,14 @@ #include "wast-parser-lexer-shared.h" -#include <cstdarg> -#include <cstdio> -#include <cstring> -#include <string> +#include "common.h" +#include "error-handler.h" +#include "wast-lexer.h" namespace wabt { -void WastParserError(Location* loc, - WastLexer* lexer, - WastParser* parser, - const char* format, - ...) { - parser->errors++; - va_list args; - va_start(args, format); - WastFormatError(parser->error_handler, loc, lexer, format, args); - va_end(args); -} - void WastFormatError(ErrorHandler* error_handler, - const struct Location* loc, + const Location* loc, WastLexer* lexer, const char* format, va_list args) { |