mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
wasm: delete obsolete code
This commit is contained in:
parent
3c6cb5bc19
commit
aaa5fa04cd
2 changed files with 0 additions and 115 deletions
|
@ -1,7 +0,0 @@
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
void main() {
|
|
||||||
printf("Hello, I am a C program and I use libc.\n");
|
|
||||||
printf("If you compile me, you'll compile libc too. That's handy for cross-compilation including Wasm.\n");
|
|
||||||
printf("Use `zig build-exe` with `--global-cache-dir my/build/directory` to put libc.a where you want it.\n");
|
|
||||||
}
|
|
|
@ -181,111 +181,3 @@ where
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T, U, V, W> Wasm32TestResult for (T, U, V, W)
|
|
||||||
where
|
|
||||||
T: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
U: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
V: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
W: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
{
|
|
||||||
fn build_wrapper_body(code_builder: &mut CodeBuilder, main_function_index: u32) {
|
|
||||||
build_wrapper_body_stack_memory(
|
|
||||||
code_builder,
|
|
||||||
main_function_index,
|
|
||||||
T::ACTUAL_WIDTH + U::ACTUAL_WIDTH + V::ACTUAL_WIDTH + W::ACTUAL_WIDTH,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<T, U, V, W, X> Wasm32TestResult for (T, U, V, W, X)
|
|
||||||
where
|
|
||||||
T: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
U: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
V: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
W: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
X: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
{
|
|
||||||
fn build_wrapper_body(code_builder: &mut CodeBuilder, main_function_index: u32) {
|
|
||||||
build_wrapper_body_stack_memory(
|
|
||||||
code_builder,
|
|
||||||
main_function_index,
|
|
||||||
T::ACTUAL_WIDTH + U::ACTUAL_WIDTH + V::ACTUAL_WIDTH + W::ACTUAL_WIDTH + X::ACTUAL_WIDTH,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<T, U, V, W, X, Y> Wasm32TestResult for (T, U, V, W, X, Y)
|
|
||||||
where
|
|
||||||
T: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
U: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
V: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
W: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
X: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
Y: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
{
|
|
||||||
fn build_wrapper_body(code_builder: &mut CodeBuilder, main_function_index: u32) {
|
|
||||||
build_wrapper_body_stack_memory(
|
|
||||||
code_builder,
|
|
||||||
main_function_index,
|
|
||||||
T::ACTUAL_WIDTH
|
|
||||||
+ U::ACTUAL_WIDTH
|
|
||||||
+ V::ACTUAL_WIDTH
|
|
||||||
+ W::ACTUAL_WIDTH
|
|
||||||
+ X::ACTUAL_WIDTH
|
|
||||||
+ Y::ACTUAL_WIDTH,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<T, U, V, W, X, Y, Z> Wasm32TestResult for (T, U, V, W, X, Y, Z)
|
|
||||||
where
|
|
||||||
T: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
U: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
V: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
W: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
X: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
Y: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
Z: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
{
|
|
||||||
fn build_wrapper_body(code_builder: &mut CodeBuilder, main_function_index: u32) {
|
|
||||||
build_wrapper_body_stack_memory(
|
|
||||||
code_builder,
|
|
||||||
main_function_index,
|
|
||||||
T::ACTUAL_WIDTH
|
|
||||||
+ U::ACTUAL_WIDTH
|
|
||||||
+ V::ACTUAL_WIDTH
|
|
||||||
+ W::ACTUAL_WIDTH
|
|
||||||
+ X::ACTUAL_WIDTH
|
|
||||||
+ Y::ACTUAL_WIDTH
|
|
||||||
+ Z::ACTUAL_WIDTH,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<T, U, V, W, X, Y, Z, A> Wasm32TestResult for (T, U, V, W, X, Y, Z, A)
|
|
||||||
where
|
|
||||||
T: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
U: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
V: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
W: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
X: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
Y: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
Z: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
A: Wasm32TestResult + FromWasm32Memory,
|
|
||||||
{
|
|
||||||
fn build_wrapper_body(code_builder: &mut CodeBuilder, main_function_index: u32) {
|
|
||||||
build_wrapper_body_stack_memory(
|
|
||||||
code_builder,
|
|
||||||
main_function_index,
|
|
||||||
T::ACTUAL_WIDTH
|
|
||||||
+ U::ACTUAL_WIDTH
|
|
||||||
+ V::ACTUAL_WIDTH
|
|
||||||
+ W::ACTUAL_WIDTH
|
|
||||||
+ X::ACTUAL_WIDTH
|
|
||||||
+ Y::ACTUAL_WIDTH
|
|
||||||
+ Z::ACTUAL_WIDTH
|
|
||||||
+ A::ACTUAL_WIDTH,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue