Skip to content

Commit 085e029

Browse files
committed
fix typos in comments
1 parent 1cf33fe commit 085e029

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tcctools.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ ST_FUNC int tcc_tool_cross(TCCState *s1, char **argv, int option)
498498
#include <process.h>
499499

500500
/* - 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.
502502
* - Consecutive (or 1) backslashes at the value all need '\'-escape only if
503503
* followed by [escaped] double quote, else taken literally, e.g. <x\\y\>
504504
* remains literal without quoting or esc, but <x\\"y\> becomes <x\\\\\"y\>.
@@ -517,7 +517,7 @@ static char *quote_win32(const char *s)
517517
if (*s == '\\' || *s == '"')
518518
*o++ = '\\';
519519
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) */
521521
cbs = *s == '\\' ? cbs + 1 : 0;
522522
}
523523
if (quoted) {

0 commit comments

Comments
 (0)