aboutsummaryrefslogtreecommitdiff
path: root/tools/wasm_compile.h
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-09-22 16:00:53 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-09-22 16:00:53 +0200
commitc548c0ce5b2e7ca2784257966ebdd386e1f31218 (patch)
tree322698f2290fd8ea1be11efbdcbed502fd7c416a /tools/wasm_compile.h
parenteb3537c25d8fb48c7123131a1b3fafcfb07d61da (diff)
downloadAGH-engineering-thesis-c548c0ce5b2e7ca2784257966ebdd386e1f31218.tar.gz
AGH-engineering-thesis-c548c0ce5b2e7ca2784257966ebdd386e1f31218.zip
perform type checking of translated instructions
Diffstat (limited to 'tools/wasm_compile.h')
-rw-r--r--tools/wasm_compile.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/wasm_compile.h b/tools/wasm_compile.h
index 3412b2d..e223ec6 100644
--- a/tools/wasm_compile.h
+++ b/tools/wasm_compile.h
@@ -24,11 +24,13 @@
#define PRERR(...) fprintf(stderr, __VA_ARGS__)
-struct functype {
- uint32_t arguments_count;
- char *arguments;
+struct resulttype {
+ uint32_t count;
+ char *types;
+};
- char result;
+struct functype {
+ struct resulttype args, results;
};
struct function {