From 58f768cb4f065a59e8d409ea99c212a58305204d Mon Sep 17 00:00:00 2001 From: Dan Bechard Date: Fri, 20 Nov 2020 15:39:08 -0800 Subject: [PATCH 1/3] Update kernel32.odin Fix typo in CreateProcessA/W mappings (https://github.com/odin-lang/Odin/issues/785) --- core/sys/win32/kernel32.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sys/win32/kernel32.odin b/core/sys/win32/kernel32.odin index d5cefad94..ba3898730 100644 --- a/core/sys/win32/kernel32.odin +++ b/core/sys/win32/kernel32.odin @@ -8,12 +8,12 @@ foreign kernel32 { @(link_name="CreateProcessA") create_process_a :: proc(application_name, command_line: cstring, process_attributes, thread_attributes: ^Security_Attributes, inherit_handle: Bool, creation_flags: u32, environment: rawptr, - current_direcotry: cstring, startup_info: ^Startup_Info, + current_directory: cstring, startup_info: ^Startup_Info, process_information: ^Process_Information) -> Bool ---; @(link_name="CreateProcessW") create_process_w :: proc(application_name, command_line: Wstring, process_attributes, thread_attributes: ^Security_Attributes, inherit_handle: Bool, creation_flags: u32, environment: rawptr, - current_direcotry: Wstring, startup_info: ^Startup_Info, + current_directory: Wstring, startup_info: ^Startup_Info, process_information: ^Process_Information) -> Bool ---; @(link_name="GetExitCodeProcess") get_exit_code_process :: proc(process: Handle, exit: ^u32) -> Bool ---; @(link_name="ExitProcess") exit_process :: proc(exit_code: u32) ---; From 2d878de84d99e3129d51150d24020c6366f4403d Mon Sep 17 00:00:00 2001 From: Dan Bechard Date: Fri, 20 Nov 2020 15:43:51 -0800 Subject: [PATCH 2/3] Update check_expr.cpp Fixed typo in error message `procedure all` -> `procedure call` --- src/check_expr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 24676b3ce..4b17b4f27 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -7659,7 +7659,7 @@ ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *call, Ast *pr mix = arg->kind == Ast_FieldValue; } if (mix) { - error(arg, "Mixture of 'field = value' and value elements in a procedure all is not allowed"); + error(arg, "Mixture of 'field = value' and value elements in a procedure call is not allowed"); fail = true; } } From 5cc9ddd40b9fc669c19613e0c35a95b7bc75b96f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikkel=20Hjortsh=C3=B8j?= Date: Sun, 22 Nov 2020 02:49:19 +0100 Subject: [PATCH 3/3] Update nightly.yml --- .github/workflows/nightly.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 1648169e1..1b6d82eaf 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -51,7 +51,7 @@ jobs: - name: (Linux) Download LLVM run: sudo apt-get install llvm - name: build odin - run: make release + run: make nightly - name: Odin run run: ./odin run examples/demo/demo.odin - name: Copy artifacts @@ -77,7 +77,7 @@ jobs: TMP_PATH=$(xcrun --show-sdk-path)/user/include echo "CPATH=$TMP_PATH" >> $GITHUB_ENV - name: build odin - run: make release + run: make nightly - name: Odin run run: ./odin run examples/demo/demo.odin - name: Copy artifacts