about summary refs log tree commit diff
path: root/library/std/src/sys/windows/args.rs
AgeCommit message (Collapse)AuthorLines
2021-08-08Implement modern Windows arg parsingChris Denton-105/+152
As derived from extensive testing of `argv` in a C/C++ application. Co-Authored-By: Jane Lusby <jlusby42@gmail.com>
2021-04-25Auto merge of #84115 - CDirkx:rt, r=m-ou-sebors-4/+0
Rework `init` and `cleanup` This PR reworks the code in `std` that runs before and after `main` and centralizes this code respectively in the functions `init` and `cleanup` in both `sys_common` and `sys`. This makes is easy to see what code is executed during initialization and cleanup on each platform just by looking at e.g. `sys::windows::init`. Full list of changes: - new module `rt` in `sys_common` to contain `init` and `cleanup` and the runtime macros. - `at_exit` and the mechanism to register exit handlers has been completely removed. In practice this was only used for closing sockets on windows and flushing stdout, which have been moved to `cleanup`. - <s>On windows `alloc` and `net` initialization is now done in `init`, this saves a runtime check in every allocation and network use.</s>
2021-04-22Move most init to `sys::init`Christiaan Dirkx-2/+0
2021-04-22Remove `sys::args::Args::inner_debug` and use `Debug` insteadChristiaan Dirkx-12/+2
2021-04-22Move all cleanup to `sys::cleanup`Christiaan Dirkx-2/+0
2020-08-31std: move "mod tests/benches" to separate filesLzu Tao-66/+3
Also doing fmt inplace as requested.
2020-07-27mv std libs to library/mark-0/+266