Text editor: add scroll bar, add mouse selection, cursor move adjustment, load text file

This commit is contained in:
Krzosa Karol
2024-06-06 16:11:32 +02:00
parent 73ebb34787
commit 50a1ca02b1
5 changed files with 99 additions and 62 deletions

View File

@@ -166,7 +166,7 @@ int main(int argc, char **argv) {
else IO_Printf("%-50s - ERROR\n", "hello_world");
}
if (!ShouldRun("sandbox")) {
if (ShouldRun("sandbox")) {
bool result = sandbox();
if (result) IO_Printf("%-50s - OK\n", "sandbox");
else IO_Printf("%-50s - ERROR\n", "sandbox");
@@ -184,8 +184,7 @@ int main(int argc, char **argv) {
else IO_Printf("%-50s - ERROR\n", "add_instrumentation");
}
#if 0
if (!ShouldRun("wasm_playground") && UseClang) {
if (ShouldRun("wasm_playground") && UseClang) {
OS_MakeDir("wasm_playground");
int result = Run("clang --target=wasm32 -mbulk-memory -Oz -Wno-writable-strings --no-standard-libraries -Wl,--strip-all -Wl,--import-memory -Wl,--no-entry -o wasm_playground/playground.wasm ../src/wasm_playground/wasm_main.c -DOS_WASM=1");
@@ -213,7 +212,6 @@ int main(int argc, char **argv) {
if (result == 0) IO_Printf("%-50s - OK\n", "wasm_playground");
else IO_Printf("%-50s - ERROR\n", "wasm_playground");
}
#endif
if (ShouldRun("use_as_data_format_with_typechecking")) {
bool result = use_as_data_format_with_typechecking();