From 765d598979b5eb4e1229695cd495d242f9db9337 Mon Sep 17 00:00:00 2001 From: Ben Smith Date: Tue, 23 May 2017 17:01:04 -0700 Subject: Move interpreter stuff into its own namespace (#454) The only names that conflict are `wabt::Opcode` vs. `interpreter::Opcode` and `wabt::Result` vs. `interpreter::Result`. Other names would conflict too (e.g. `FuncSignature`) but those aren't ever included in the interpreter-related code. --- src/binary-reader-interpreter.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/binary-reader-interpreter.h') diff --git a/src/binary-reader-interpreter.h b/src/binary-reader-interpreter.h index 60f985ce..a075e631 100644 --- a/src/binary-reader-interpreter.h +++ b/src/binary-reader-interpreter.h @@ -21,17 +21,22 @@ namespace wabt { +namespace interpreter { + +struct DefinedModule; +struct Environment; + +} // namespace interpreter + class BinaryErrorHandler; -struct DefinedInterpreterModule; -struct InterpreterEnvironment; struct ReadBinaryOptions; -Result read_binary_interpreter(InterpreterEnvironment* env, +Result read_binary_interpreter(interpreter::Environment* env, const void* data, size_t size, const ReadBinaryOptions* options, BinaryErrorHandler*, - DefinedInterpreterModule** out_module); + interpreter::DefinedModule** out_module); } // namespace wabt -- cgit v1.2.3