Unified · Split
| @@ -498,7 +498,7 @@ ST_FUNC int tcc_tool_cross(TCCState *s1, char **argv, int option) · 497 unmodified lines | |||
| 498 | #include <process.h> | 498 | #include <process.h> |
| 499 | 499 | ||
| 500 | /* - Empty argument or with space/tab (not newline) requires quoting. | 500 | /* - Empty argument or with space/tab (not newline) requires quoting. |
| 501 | * - Double-quotes at the value require '\'-escape, retardless of quoting. | 501 | * - Double-quotes at the value require '\'-escape, regardless of quoting. |
| 502 | * - Consecutive (or 1) backslashes at the value all need '\'-escape only if | 502 | * - Consecutive (or 1) backslashes at the value all need '\'-escape only if |
| 503 | * followed by [escaped] double quote, else taken literally, e.g. <x\\y\> | 503 | * followed by [escaped] double quote, else taken literally, e.g. <x\\y\> |
| 504 | * remains literal without quoting or esc, but <x\\"y\> becomes <x\\\\\"y\>. | 504 | * remains literal without quoting or esc, but <x\\"y\> becomes <x\\\\\"y\>. |
| @@ -517,7 +517,7 @@ static char *quote_win32(const char *s) · 12 unmodified lines | |||
| 517 | if (*s == '\\' || *s == '"') | 517 | if (*s == '\\' || *s == '"') |
| 518 | *o++ = '\\'; | 518 | *o++ = '\\'; |
| 519 | else | 519 | else |
| 520 | o -= cbs; /* undo cbs escpaes, if any (not followed by DQ) */ | 520 | o -= cbs; /* undo cbs escapes, if any (not followed by DQ) */ |
| 521 | cbs = *s == '\\' ? cbs + 1 : 0; | 521 | cbs = *s == '\\' ? cbs + 1 : 0; |
| 522 | } | 522 | } |
| 523 | if (quoted) { | 523 | if (quoted) { |