From 27b4343c2a7e2583881485a5ac667894fec729f0 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Sun, 2 Feb 2025 14:38:13 +0100 Subject: Refactor, renaming (work in progress) --- index.htm | 43 ++++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 21 deletions(-) (limited to 'index.htm') diff --git a/index.htm b/index.htm index 5e0dd3c..2e3ebe8 100644 --- a/index.htm +++ b/index.htm @@ -34,7 +34,7 @@ fd_seek : () => { throw new Error("Unexpected fd_seek call"); }, }, env : { - p_clipboard_write_text_impl : (size, text) => { + write_clipboard_text_impl : (size, text) => { let text_buffer = new ArrayBuffer(size); new Uint8Array(text_buffer).set(new Uint8Array(this.memory_buffer, text, size)); @@ -43,7 +43,7 @@ text_buffer : text_buffer, }); }, - p_time : () => { return BigInt(Date.now()); }, + current_time_in_milliseconds : () => { return BigInt(Date.now()); }, floor : Math.floor, ceil : Math.ceil, @@ -275,25 +275,26 @@ wasm, { env : { - p_clipboard_write_impl : () => {}, - p_time : () => {}, - floor : () => {}, - ceil : () => {}, - trunc : () => {}, - sqrt : () => {}, - cbrt : () => {}, - pow : () => {}, - log : () => {}, - log2 : () => {}, - log10 : () => {}, - exp : () => {}, - sin : () => {}, - cos : () => {}, - tan : () => {}, - asin : () => {}, - acos : () => {}, - atan : () => {}, - atan2 : () => {}, + write_clipboard_impl : () => {}, + current_time_in_milliseconds : () => {}, + + floor : () => {}, + ceil : () => {}, + trunc : () => {}, + sqrt : () => {}, + cbrt : () => {}, + pow : () => {}, + log : () => {}, + log2 : () => {}, + log10 : () => {}, + exp : () => {}, + sin : () => {}, + cos : () => {}, + tan : () => {}, + asin : () => {}, + acos : () => {}, + atan : () => {}, + atan2 : () => {}, }, } ); -- cgit v1.2.3