summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-binary.h')
-rw-r--r--src/wasm-binary.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/wasm-binary.h b/src/wasm-binary.h
index 5cb56f770..a76bf7fa5 100644
--- a/src/wasm-binary.h
+++ b/src/wasm-binary.h
@@ -238,16 +238,16 @@ enum Meta {
};
namespace Section {
- auto Memory = "memory";
- auto Signatures = "type";
- auto ImportTable = "import";
- auto FunctionSignatures = "function";
- auto Functions = "code";
- auto ExportTable = "export";
- auto DataSegments = "data";
- auto FunctionTable = "table";
- auto Names = "name";
- auto Start = "start";
+ extern const char* Memory;
+ extern const char* Signatures;
+ extern const char* ImportTable;
+ extern const char* FunctionSignatures;
+ extern const char* Functions;
+ extern const char* ExportTable;
+ extern const char* DataSegments;
+ extern const char* FunctionTable;
+ extern const char* Names;
+ extern const char* Start;
};
enum FunctionEntry {
@@ -445,7 +445,7 @@ enum TypeForms {
} // namespace BinaryConsts
-int8_t binaryWasmType(WasmType type) {
+inline int8_t binaryWasmType(WasmType type) {
switch (type) {
case none: return 0;
case i32: return 1;