From df0c0ed0e345483addaa0d726b32cbb757a6aaff Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Thu, 6 Jan 2022 10:22:03 -0600 Subject: [PATCH] cleaning up old files --- .ccls | 4 ---- .vimspector.json | 25 ---------------------- core/container/iter.onyx | 4 ++-- project.4coder | 45 ---------------------------------------- 4 files changed, 2 insertions(+), 76 deletions(-) delete mode 100644 .ccls delete mode 100644 .vimspector.json delete mode 100644 project.4coder diff --git a/.ccls b/.ccls deleted file mode 100644 index 3cead6d8..00000000 --- a/.ccls +++ /dev/null @@ -1,4 +0,0 @@ -clang -%c -std=c11 -%cpp -std=c++2a --I./include diff --git a/.vimspector.json b/.vimspector.json deleted file mode 100644 index ca0980d4..00000000 --- a/.vimspector.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "configurations": { - "cpptools-run": { - "adapter": "vscode-cpptools", - "configuration": { - "type": "cppdbg", - "request": "launch", - "program": "${workspaceFolder}/bin/onyx-debug", - "args": ["-VVV", "tmp/a.onyx"], - "stopAtEntry": true, - "cwd": "${workspaceFolder}", - "environment": [], - "externalConsole": false, - "MIMode": "gdb", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - } - ] - } - } - } -} diff --git a/core/container/iter.onyx b/core/container/iter.onyx index 1a8c575b..6a328d8f 100644 --- a/core/container/iter.onyx +++ b/core/container/iter.onyx @@ -599,7 +599,7 @@ parallel_for :: #match {} }; threads := (cast(^thread.Thread) alloc.from_stack(thread_count * sizeof thread.Thread))[0 .. (thread_count - 1)]; - for^ threads do thread.spawn(it, ^t_data, #solidify thread_function {body=body, T=T, Ctx=Ctx}); + for^ threads do thread.spawn(it, ^t_data, #solidify thread_function {body=body}); thread_function(^t_data, body); @@ -612,7 +612,7 @@ parallel_for :: #match {} data: ^Ctx; } - thread_function :: (__data: ^Thread_Data($T, $Ctx), $body: Code) { + thread_function :: (__data: ^Thread_Data, $body: Code) { thread_data := __data.data; for #no_close *__data.iter { #insert body; diff --git a/project.4coder b/project.4coder deleted file mode 100644 index 8980e3a7..00000000 --- a/project.4coder +++ /dev/null @@ -1,45 +0,0 @@ -version(1); -project_name = "Onyx"; - -patterns = { -"*.c", -"*.cpp", -"*.h", -"*.onyx", -"*.js", -"*.bat", -"*.sh", -"*.4coder", -"*.txt", -}; -blacklist_patterns = { -".*", -}; -load_paths_custom = { - {"."}, -}; -load_paths = { - { load_paths_custom, .os = "win" }, - { load_paths_custom, .os = "linux"}, - { load_paths_custom, .os = "mac" }, -}; - -build_debug_win32 = "build.bat"; -build_release_win32 = "build.bat 1"; -build_debug_linux = "./build.sh debug"; -build_release_linux = "./build.sh"; - -command_list = { - { .name = "Build Debug", - .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, - .cmd = { {build_debug_win32, .os ="win" }, - {build_debug_linux, .os ="linux"}, }, }, - - { .name = "Build Release", - .out = "*compilation*", .footer_panel = true, .save_dirty_files = true, - .cmd = { {build_release_win32, .os ="win" }, - {build_release_linux, .os ="linux" }, }, }, -}; - -fkey_command[1] = "Build Debug"; -fkey_command[2] = "Build Release"; -- 2.25.1