3 ms·
> Rust (LLVM) pragmatically call[s] CommandLineToArgv This is not correct. It calls `GetCommandLine` to get the raw command line string and then attempts to pa
by ChrisSD 5y ago
> Rust (LLVM) pragmatically call[s] CommandLineToArgv
This is not correct. It calls `GetCommandLine` to get the raw command line string and then attempts to parse it in the same way as modern C/C++. https://github.com/rust-lang/rust/blob/3b186511f62b0ce20e72ede0e8e13f8787155f02/library/std/src/sys/windows/args.rs#L35 https://github.com/rust-lang/rust/blob/3b186511f62b0ce20e72e...
The rules themselves are officially documented here: https://docs.microsoft.com/en-us/cpp/cpp/main-function-command-line-args?view=msvc-160#parsing-c-command-line-arguments https://docs.microsoft.com/en-us/cpp/cpp/main-function-comma...
Though the linked David Deley investigation is more in-depth: https://daviddeley.com/autohotkey/parameters/parameters.htm#WIN https://daviddeley.com/autohotkey/parameters/parameters.htm#...