Cygwin: __wscollate_range_cmp: fix incorrect comment

The comment that the first arg must be the pattern was added
during development, before it turned out that __wscollate_range_cmp
can be implemented in an order independent way.

Better explain why this function uses pointers to strings.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2023-02-28 12:10:40 +01:00
parent c8397ae817
commit 6e75277b12
1 changed files with 2 additions and 2 deletions

View File

@ -1212,8 +1212,8 @@ __wcollate_range_cmp (wint_t c1, wint_t c2)
/* Not so much BSD. Used from glob.cc, fnmatch.c and regcomp.c. /* Not so much BSD. Used from glob.cc, fnmatch.c and regcomp.c.
First arg is always from pattern space, second arg is the tested string. The args are pointers to wint_t strings. This allows to compare
len is the length of the pattern in the first arg. */ against collating symbols. */
extern "C" int extern "C" int
__wscollate_range_cmp (wint_t *c1, wint_t *c2, __wscollate_range_cmp (wint_t *c1, wint_t *c2,
size_t c1len, size_t c2len) size_t c1len, size_t c2len)