From b293170386c808151739b31bf01d6f20784c0d33 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 8 Nov 2024 22:41:52 +0100 Subject: [PATCH] wildcard: missing quotes; reorder list Add missing quotes to support paths with spaces Move the mingw-w64 defaults to the bottom, since they are not that important to users now since it is disabled by default. --- web/docs/c.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/web/docs/c.md b/web/docs/c.md index 83274e03..e13fbe2a 100644 --- a/web/docs/c.md +++ b/web/docs/c.md @@ -9,11 +9,7 @@ https://learn.microsoft.com/en-us/cpp/c-language/expanding-wildcard-arguments With mingw-w64, there are three ways wildcard expansion can be configured: -1. mingw-w64 can be configured at build time to either enable or disable wildcard expansion by default via the `--enable-wildcard` configure flags. This can to be overridden on a per .exe basis by the user. - - Wildcard expansion is disabled by default in MSYS2. - -2. You can set `_dowildcard` in your source code to either `0` or `-1` to disable or enable wildcard expansion. +1. You can set `_dowildcard` in your source code to either `0` or `-1` to disable or enable wildcard expansion. ```c // To force-enable wildcard expansion @@ -22,15 +18,19 @@ With mingw-w64, there are three ways wildcard expansion can be configured: int _dowildcard = 0; ``` -3. You can link in `CRT_noglob.o` or `CRT_glob.o` to disable or enable wildcard expansion, respectively. This will error out if `_dowildcard` is already set in the source. +2. You can link in `CRT_noglob.o` or `CRT_glob.o` to disable or enable wildcard expansion, respectively. This will error out if `_dowildcard` is already set in the source. ```bash # To force-enable wildcard expansion - cc main.c $(cc -print-file-name=CRT_glob.o) + cc main.c "$(cc -print-file-name=CRT_glob.o)" # To force-disable wildcard expansion - cc main.c $(cc -print-file-name=CRT_noglob.o) + cc main.c "$(cc -print-file-name=CRT_noglob.o)" ``` +3. mingw-w64 can be configured at build time to either enable or disable wildcard expansion by default via the `--enable-wildcard` configure flags. This can to be overridden on a per .exe basis by the user. + + Wildcard expansion is disabled by default in MSYS2. + ### Changelog * Starting with 2024-11-03 we have changed mingw-w64 to to disable wildcard