Update a comment that compared the parser with an obsolete draft of
IEEE Std 1003.2-1992. Most of the "extensions" here were actually required by the final version of the standard.
This commit is contained in:
parent
f91650cf2d
commit
0dcb7b75a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131196
@ -161,10 +161,8 @@ get_list(char *list)
|
|||||||
/*
|
/*
|
||||||
* set a byte in the positions array to indicate if a field or
|
* set a byte in the positions array to indicate if a field or
|
||||||
* column is to be selected; use +1, it's 1-based, not 0-based.
|
* column is to be selected; use +1, it's 1-based, not 0-based.
|
||||||
* This parser is less restrictive than the Draft 9 POSIX spec.
|
* Numbers and number ranges may be overlapping, repeated, and in
|
||||||
* POSIX doesn't allow lists that aren't in increasing order or
|
* any order. We handle "-3-5" although there's no real reason too.
|
||||||
* overlapping lists. We also handle "-3-5" although there's no
|
|
||||||
* real reason too.
|
|
||||||
*/
|
*/
|
||||||
for (; (p = strsep(&list, ", \t")) != NULL;) {
|
for (; (p = strsep(&list, ", \t")) != NULL;) {
|
||||||
setautostart = start = stop = 0;
|
setautostart = start = stop = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user