Normalize comment style
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-arm32 (push) Waiting to run
Build / build-win (push) Waiting to run
Build / build-freebsd (push) Waiting to run
Build / build-musl (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run

This commit is contained in:
Andrea Mazzoleni 2026-10-07 09:09:39 +02:00
parent 8fe9331f42
commit a39fb132f8
29 changed files with 186 additions and 190 deletions

View file

@ -63,7 +63,7 @@ static int needs_quote(const WCHAR* arg)
cmd[pos++] = (c); \
} while (0)
/*
/**
* Append one argument using the Microsoft C runtime command-line
* quoting rules. Use this when building a normal CreateProcessW()
* command line that the target process will parse back into argv[].
@ -146,10 +146,10 @@ static char* argutf8(const WCHAR* arg)
return utf8_arg;
}
/* Global variable to store child process handle */
/* global variable to store child process handle */
static void* volatile child_process = NULL;
/*
/**
* Safe atomic access helpers for child_process.
*
* The console_handler runs concurrently on an OS-managed thread created by
@ -169,7 +169,7 @@ static void child_process_write(HANDLE handle)
InterlockedExchangePointer(&child_process, handle);
}
/* Console control handler - forwards Ctrl+C, Ctrl+Break to child */
/* console control handler - forwards Ctrl+C, Ctrl+Break to child */
static BOOL WINAPI console_handler(DWORD ctrl_type)
{
/* if no child, default behavior */